Fix scrolling not updating in the VRAM viewer
This commit is contained in:
parent
706135113c
commit
5cc845d715
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user