Kaynağa Gözat

格式修正

Sunxin 6 yıl önce
ebeveyn
işleme
8eb3d5bb61
2 değiştirilmiş dosya ile 12 ekleme ve 12 silme
  1. 5 5
      src/image.c
  2. 7 7
      src/image_png.c

+ 5 - 5
src/image.c

@@ -59,7 +59,7 @@ void rtgui_system_image_init(void)
     /* always support HDC image */
     rtgui_image_hdc_init();
 #endif
-    
+
 #ifdef GUIENGINE_IMAGE_XPM
     rtgui_image_xpm_init();
 #endif
@@ -111,10 +111,10 @@ struct rtgui_image_engine *rtgui_image_get_engine_by_filename(const char *fn)
         if (*ext == '.')
         {
             ext ++;
-			if (*(ext - 3) == '.')//check '9.png'
-			{
-				ext -= 2;
-			}
+            if (*(ext - 3) == '.')//check '9.png'
+            {
+                ext -= 2;
+            }
             break;
         }
         ext --;

+ 7 - 7
src/image_png.c

@@ -443,12 +443,12 @@ struct rtgui_image_engine rtgui_image_png_engine =
 
 struct rtgui_image_engine rtgui_image_9png_engine =
 {
-	"9.png",
-	{ RT_NULL },
-	rtgui_image_png_check,
-	rtgui_image_png_load,
-	rtgui_image_png_unload,
-	rtgui_image_png_blit,
+    "9.png",
+    { RT_NULL },
+    rtgui_image_png_check,
+    rtgui_image_png_load,
+    rtgui_image_png_unload,
+    rtgui_image_png_blit,
 };
 
 static rt_bool_t rtgui_image_png_check(struct rtgui_filerw *file)
@@ -723,6 +723,6 @@ void rtgui_image_png_init()
 {
     /* register png on image system */
     rtgui_image_register_engine(&rtgui_image_png_engine);
-	rtgui_image_register_engine(&rtgui_image_9png_engine);
+    rtgui_image_register_engine(&rtgui_image_9png_engine);
 }
 #endif