Procházet zdrojové kódy

add: sdl2忘提交了

Wendal Chen před 4 roky
rodič
revize
a15aebc962
1 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 5 1
      components/ui/sdl2/luat_lcd_sdl2.c

+ 5 - 1
components/ui/sdl2/luat_lcd_sdl2.c

@@ -59,6 +59,11 @@ static inline uint32_t luat_color_565to8888(luat_color_t color) {
     return t;
 }
 
+int luat_lcd_flush(luat_lcd_conf_t* conf) {
+    luat_sdl2_flush();
+    return 0;
+}
+
 int luat_lcd_draw(luat_lcd_conf_t* conf, uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, luat_color_t* color_p) {
     size_t rw = x2 - x1 + 1;
     size_t rh = y2 - y1 + 1;
@@ -75,7 +80,6 @@ int luat_lcd_draw(luat_lcd_conf_t* conf, uint16_t x1, uint16_t y1, uint16_t x2,
     }
     
     luat_sdl2_draw(x1, y1, x2, y2, fb);
-    luat_sdl2_flush();
     return 0;
 }