issue #1979
This commit is contained in:
parent
b925255a0d
commit
d987608d40
|
@ -49,7 +49,7 @@ static void u8g_sdl_set_pixel(int x, int y, int idx)
|
|||
|
||||
assert( offset < (Uint32)(u8g_sdl_width * u8g_sdl_multiple * u8g_sdl_height * u8g_sdl_multiple * u8g_sdl_screen->format->BytesPerPixel) );
|
||||
|
||||
ptr = u8g_sdl_screen->pixels + offset;
|
||||
ptr = (uint32_t *)(((uint8_t *)(u8g_sdl_screen->pixels)) + offset);
|
||||
*ptr = u8g_sdl_color[idx];
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue