瀏覽代碼

REVIEWED: Issue with `TextJoin()` #455 #457

Ray 7 月之前
父節點
當前提交
4029ec0954
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      examples/image_exporter/image_exporter.c
  2. 3 3
      examples/image_importer_raw/image_importer_raw.c

+ 2 - 2
examples/image_exporter/image_exporter.c

@@ -38,10 +38,10 @@ int main(int argc, char *argv[])
     bool windowBoxActive = false;
     
     int fileFormatActive = 0;
-    const char *fileFormatTextList[3] = { "IMAGE (.png)", "DATA (.raw)", "CODE (.h)" };
+    char *fileFormatTextList[3] = { "IMAGE (.png)", "DATA (.raw)", "CODE (.h)" };
 
     int pixelFormatActive = 0;
-    const char *pixelFormatTextList[7] = { "GRAYSCALE", "GRAY ALPHA", "R5G6B5", "R8G8B8", "R5G5B5A1", "R4G4B4A4", "R8G8B8A8" };
+    char *pixelFormatTextList[7] = { "GRAYSCALE", "GRAY ALPHA", "R5G6B5", "R8G8B8", "R5G5B5A1", "R4G4B4A4", "R8G8B8A8" };
 
     bool textBoxEditMode = false;
     char fileName[64] = "untitled";

+ 3 - 3
examples/image_importer_raw/image_importer_raw.c

@@ -50,12 +50,12 @@ int main()
     bool heightEditMode = false;
     
     int pixelFormatActive = 0;
-    const char *pixelFormatTextList[8] = { "CUSTOM", "GRAYSCALE", "GRAY ALPHA", "R5G6B5", "R8G8B8", "R5G5B5A1", "R4G4B4A4", "R8G8B8A8" };
+    char *pixelFormatTextList[8] = { "CUSTOM", "GRAYSCALE", "GRAY ALPHA", "R5G6B5", "R8G8B8", "R5G5B5A1", "R4G4B4A4", "R8G8B8A8" };
 
     int channelsActive = 3;
-    const char *channelsTextList[4] = { "1", "2", "3", "4" };
+    char *channelsTextList[4] = { "1", "2", "3", "4" };
     int bitDepthActive = 0;
-    const char *bitDepthTextList[3] = { "8", "16", "32" };
+    char *bitDepthTextList[3] = { "8", "16", "32" };
     
     int headerSizeValue = 0;
     bool headerSizeEditMode = false;