From ebe28eea87d221e21b09e8383af592e431f14e17 Mon Sep 17 00:00:00 2001 From: EGAMatsu Date: Mon, 3 Jun 2024 00:23:51 -0500 Subject: [PATCH] Quickly fix the RGB colors to be a bit closer too the actual math needed. --- src/Window_MacClassic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Window_MacClassic.c b/src/Window_MacClassic.c index afc9adda9..f57d06c71 100644 --- a/src/Window_MacClassic.c +++ b/src/Window_MacClassic.c @@ -142,7 +142,7 @@ void Window_AllocFramebuffer(struct Bitmap* bmp) { #define GetWindowPort(w) w void Window_DrawFramebuffer(Rect2D r, struct Bitmap* bmp) { - // Assuming 'win' is a valid window context (you need to define it) + // Grab Window port. GrafPtr thePort = GetWindowPort(win); int ww = bmp->width; int hh = bmp->height; @@ -159,9 +159,9 @@ void Window_DrawFramebuffer(Rect2D r, struct Bitmap* bmp) { // Set the pixel color in the window RGBColor pixelColor; - pixelColor.red = R * 255; - pixelColor.green = G * 255; - pixelColor.blue = B * 255; + pixelColor.red = R * 256; + pixelColor.green = G * 256; + pixelColor.blue = B * 256; RGBForeColor(&pixelColor); MoveTo(x, y); Line(0, 0);