Fix scrolling not updating in the VRAM viewer

This commit is contained in:
Lior Halphon 2022-05-19 23:43:31 +03:00
parent 706135113c
commit 5cc845d715

View File

@ -78,6 +78,7 @@
{ {
NSTrackingArea *_trackingArea; NSTrackingArea *_trackingArea;
GBGridView *_gridView; GBGridView *_gridView;
NSRect _scrollRect;
} }
- (instancetype)initWithCoder:(NSCoder *)coder - (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 @end