From 03ebc5375ba09d82d71d39d709860ebb96f102c0 Mon Sep 17 00:00:00 2001 From: Ricky Zhang Date: Wed, 15 Jul 2020 20:55:34 -0400 Subject: [PATCH] Fix comment. Signed-off-by: Ricky Zhang --- BasiliskII/src/SDL/video_sdl.cpp | 4 ++-- BasiliskII/src/SDL/video_sdl2.cpp | 4 ++-- BasiliskII/src/Unix/video_x.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BasiliskII/src/SDL/video_sdl.cpp b/BasiliskII/src/SDL/video_sdl.cpp index c1cde5e2..d5ba4f5d 100644 --- a/BasiliskII/src/SDL/video_sdl.cpp +++ b/BasiliskII/src/SDL/video_sdl.cpp @@ -1033,9 +1033,9 @@ bool VideoInit(bool classic) else if (default_height > sdl_display_height()) default_height = sdl_display_height(); - // for classic Mac, make sure the display width is 8 + // for classic Mac, make sure the display width is divisible by 8 if (classic) { - default_width = (default_width << 3) >> 3; + default_width = (default_width / 8) * 8; } // Mac screen depth follows X depth diff --git a/BasiliskII/src/SDL/video_sdl2.cpp b/BasiliskII/src/SDL/video_sdl2.cpp index dac7d7b0..c90e0177 100644 --- a/BasiliskII/src/SDL/video_sdl2.cpp +++ b/BasiliskII/src/SDL/video_sdl2.cpp @@ -1406,9 +1406,9 @@ bool VideoInit(bool classic) else if (default_height > sdl_display_height()) default_height = sdl_display_height(); - // for classic Mac, make sure the display width is 8 + // for classic Mac, make sure the display width is divisible by 8 if (classic) { - default_width = (default_width << 3) >> 3; + default_width = (default_width / 8) * 8; } // Mac screen depth follows X depth screen_depth = 32; diff --git a/BasiliskII/src/Unix/video_x.cpp b/BasiliskII/src/Unix/video_x.cpp index 6e90e50f..82cb056b 100644 --- a/BasiliskII/src/Unix/video_x.cpp +++ b/BasiliskII/src/Unix/video_x.cpp @@ -1808,9 +1808,9 @@ bool VideoInit(bool classic) else if (default_height > DisplayHeight(x_display, screen)) default_height = DisplayHeight(x_display, screen); - // for classic Mac, make sure the display width is 8 + // for classic Mac, make sure the display width is divisible by 8 if (classic) { - default_width = (default_width << 3) >> 3; + default_width = (default_width / 8) * 8; } // Mac screen depth follows X depth