From 61c406903120ef9ea7dafdc98092e69fdb5e7619 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Thu, 15 Jan 2015 16:17:52 -0800 Subject: [PATCH] Fine-tune file viewer size The height was supposed to be just tall enough to fit a Super Hi-Res graphic without needing to scroll, but it had become too short by about 6 pixels. The width was supposed to be wide enough to exactly fit 80-column text, but the optional scroll bar ate two columns when it appeared. We now over-size the viewer so it looks right when the scroll bar appears. --- app/Preferences.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Preferences.cpp b/app/Preferences.cpp index 4b6e656..af8f719 100644 --- a/app/Preferences.cpp +++ b/app/Preferences.cpp @@ -245,8 +245,9 @@ Preferences::Preferences(void) SetPrefString(kPrViewTextTypeFace, L"Courier New"); SetPrefLong(kPrViewTextPointSize, 10); - long width = 680; /* exact width for 80-column text */ - long height = 510; /* exact height for file viewer to show IIgs graphic */ + long width = 680 + /* exact width for 80-column text */ + ::GetSystemMetrics(SM_CXVSCROLL); + long height = 516; /* exact height for file viewer to show IIgs graphic */ if (GetSystemMetrics(SM_CXSCREEN) < width) width = GetSystemMetrics(SM_CXSCREEN); if (GetSystemMetrics(SM_CYSCREEN) < height)