[Patch] MDSI Genius displays in blue

Post new patches here!
Post Reply
User avatar
JohnElliott
Posts: 101
Joined: Sun 31 Jan, 2016 7:29 pm

[Patch] MDSI Genius displays in blue

Post by JohnElliott » Mon 16 Sep, 2019 9:17 pm

In its graphics mode the MDSI Genius displays in blue on black, not white on black. Fortunately it's a fairly easy fix - just a couple of variables that need widening to 32 bits:

Code: Select all

--- 91640.orig/src/vid_genius.c	2019-05-19 17:41:11.000000000 +0100
+++ 91640.base/src/vid_genius.c	2019-09-16 22:12:50.884104471 +0100
@@ -420,7 +420,7 @@
 {
 	int x, c;
 	uint32_t dat;
-	uint8_t ink;
+	uint32_t ink;
 	uint32_t addr;
         
 	ink = (genius->genius_control & 0x20) ? genius_pal[0] : genius_pal[3];
@@ -457,7 +457,7 @@
 {
         genius_t *genius = (genius_t *)p;
         int x;
-        uint8_t background;
+        uint32_t background;
 
         if (!genius->linepos)
         {


Post Reply