1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Fix small palette issue.

This commit is contained in:
Duncan
2014-06-05 16:49:30 +01:00
parent c333e9f042
commit f6a3c2dd04

View File

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