git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit d6adbe0c7f01907a769265a08c6703eb191d3b6d
parent 9383acda342784794a4c624d313df21cfafd7244
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun, 31 Jul 2022 00:53:38 +0300

No clue why force redrawing the parent wasn't enough

Diffstat:
MCocoa/Document.m5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -889,6 +889,7 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) [layoutView setFrame:layoutViewFrame]; [layoutView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable | NSViewMaxYMargin]; [self.memoryView addSubview:layoutView]; + self.memoryView = layoutView; self.memoryBankItem.enabled = false; } @@ -1757,7 +1758,9 @@ static bool is_path_writeable(const char *path) } [self.memoryBankInput setStringValue:[NSString stringWithFormat:@"$%x", byteArray.selectedBank]]; [hex_controller reloadData]; - [self.memoryView setNeedsDisplay:true]; + for (NSView *view in self.memoryView.subviews) { + [view setNeedsDisplay:true]; + } } - (GB_gameboy_t *) gameboy

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.