From f6a3c2dd04d4e1a722e923403d6139b2406af40f Mon Sep 17 00:00:00 2001 From: Duncan Date: Thu, 5 Jun 2014 16:49:30 +0100 Subject: [PATCH] Fix small palette issue. --- src/gfx.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gfx.c b/src/gfx.c index 85ac18c4be..d3ec14b9b7 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -2006,10 +2006,12 @@ void gfx_draw_string(rct_drawpixelinfo *dpi, char *buffer, int colour, int x, in } //Adjust the text palette RCT2_GLOBAL(0x09ABE05, uint16) = ebx; - ebx = g1_element->offset[0xF7]; - RCT2_GLOBAL(0x09ABE07, uint16) = ebx; - ebx = g1_element->offset[0xFA]; - RCT2_GLOBAL(0x09ABE09, uint16) = ebx; + memcpy((uint8*)0x09ABE07,&(g1_element->offset[0xF7]),2); + //ebx = g1_element->offset[0xF7]; + //RCT2_GLOBAL(0x09ABE07, uint16) = ebx; + memcpy((uint8*)0x09ABE09,&(g1_element->offset[0xFA]),2); + //ebx = g1_element->offset[0xFA]; + //RCT2_GLOBAL(0x09ABE09, uint16) = ebx; //Set the palette pointer RCT2_GLOBAL(0x09ABDA4, uint32) = 0x09ABE04; if ((y + 0x13 <= dpi->y) || (dpi->y + dpi->height <= y)) {