[Patch] MDSI Genius displays in blue

Post Reply
User avatar
JohnElliott
Posts: 113
Joined: Sun 31 Jan, 2016 7:29 pm

[Patch] MDSI Genius displays in blue

Post by JohnElliott »

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)
         {

User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: [Patch] MDSI Genius displays in blue

Post by SarahWalker »

Committed at rev 1531.
Post Reply