SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 5cc845d71525421012dbe3f53c9e53f0dc627971 parent 706135113c3c75c4c828a899beafd226f31ddd76 Author: Lior Halphon <LIJI32@gmail.com> Date: Thu, 19 May 2022 23:43:31 +0300 Fix scrolling not updating in the VRAM viewer Diffstat:
| M | Cocoa/GBImageView.m | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/Cocoa/GBImageView.m b/Cocoa/GBImageView.m @@ -78,6 +78,7 @@ { NSTrackingArea *_trackingArea; GBGridView *_gridView; + NSRect _scrollRect; } - (instancetype)initWithCoder:(NSCoder *)coder @@ -149,4 +150,17 @@ } } +- (void)setScrollRect:(NSRect)scrollRect +{ + if (memcmp(&scrollRect, &_scrollRect, sizeof(scrollRect)) != 0) { + _scrollRect = scrollRect; + [_gridView setNeedsDisplay:true]; + } +} + +- (NSRect)scrollRect +{ + return _scrollRect; +} + @end
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.