This commit is contained in:
kraus 2022-10-11 14:32:30 +02:00
parent b925255a0d
commit d987608d40
1 changed files with 1 additions and 1 deletions

View File

@ -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
}