From 1d7692cff5552e296be5e1ab075c4f187f57132c Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sun, 11 Jul 2021 23:12:46 +0300 Subject: [PATCH] Fix blurry VRAM viewer grid lines --- Cocoa/Document.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cocoa/Document.m b/Cocoa/Document.m index c434934..64e3a21 100644 --- a/Cocoa/Document.m +++ b/Cocoa/Document.m @@ -691,7 +691,11 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) window_frame.size.height); [self.mainWindow setFrame:window_frame display:YES]; self.vramStatusLabel.cell.backgroundStyle = NSBackgroundStyleRaised; - + + NSUInteger height_diff = self.vramWindow.frame.size.height - self.vramWindow.contentView.frame.size.height; + CGRect vram_window_rect = self.vramWindow.frame; + vram_window_rect.size.height = 384 + height_diff + 48; + [self.vramWindow setFrame:vram_window_rect display:YES animate:NO]; self.consoleWindow.title = [NSString stringWithFormat:@"Debug Console – %@", [self.fileURL.path lastPathComponent]];