From 2948c5a747841e12f642769e1bc2e53dee3e945a Mon Sep 17 00:00:00 2001 From: marshfolx Date: Thu, 11 Dec 2025 14:10:10 +0800 Subject: [PATCH] Add conditional definition for u8g_sdl_multiple use U8G2_U8G_SDL_MULTIPLE to adjust window size and pixel size. --- sys/sdl/common/u8x8_d_sdl_128x64.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/sdl/common/u8x8_d_sdl_128x64.c b/sys/sdl/common/u8x8_d_sdl_128x64.c index 93f33ff6..0af4e8fa 100644 --- a/sys/sdl/common/u8x8_d_sdl_128x64.c +++ b/sys/sdl/common/u8x8_d_sdl_128x64.c @@ -19,7 +19,16 @@ SDL_Window *u8g_sdl_window; SDL_Surface *u8g_sdl_screen; #endif +#ifdef U8G2_U8G_SDL_MULTIPLE + +int u8g_sdl_multiple = U8G2_U8G_SDL_MULTIPLE; + +#else + int u8g_sdl_multiple = 3; + +#endif + uint32_t u8g_sdl_color[256]; int u8g_sdl_height, u8g_sdl_width;