Fix scrolling not updating in the VRAM viewer
{
NSTrackingArea *_trackingArea;
GBGridView *_gridView;
+ NSRect _scrollRect;
}
- (instancetype)initWithCoder:(NSCoder *)coder
}
}
+- (void)setScrollRect:(NSRect)scrollRect
+{
+ if (memcmp(&scrollRect, &_scrollRect, sizeof(scrollRect)) != 0) {
+ _scrollRect = scrollRect;
+ [_gridView setNeedsDisplay:true];
+ }
+}
+
+- (NSRect)scrollRect
+{
+ return _scrollRect;
+}
+
@end
