2
0
Ray 3 жил өмнө
parent
commit
cf76d23476

+ 0 - 1
examples/text/text_codepoints_loading.c

@@ -24,7 +24,6 @@ static char *text = "いろはにほへと ちりぬるを\nわかよたれそ
 // Remove codepoint duplicates if requested
 // Remove codepoint duplicates if requested
 static int *CodepointRemoveDuplicates(int *codepoints, int codepointCount, int *codepointResultCount);
 static int *CodepointRemoveDuplicates(int *codepoints, int codepointCount, int *codepointResultCount);
 
 
-
 //------------------------------------------------------------------------------------
 //------------------------------------------------------------------------------------
 // Program main entry point
 // Program main entry point
 //------------------------------------------------------------------------------------
 //------------------------------------------------------------------------------------

+ 4 - 3
examples/text/text_unicode.c

@@ -153,7 +153,7 @@ static int hovered = -1, selected = -1;
 //------------------------------------------------------------------------------------
 //------------------------------------------------------------------------------------
 // Program main entry point
 // Program main entry point
 //------------------------------------------------------------------------------------
 //------------------------------------------------------------------------------------
-int main(int argc, char **argv)
+int main(void)
 {
 {
     // Initialization
     // Initialization
     //--------------------------------------------------------------------------------------
     //--------------------------------------------------------------------------------------
@@ -267,6 +267,7 @@ int main(int argc, char **argv)
                     a = b;
                     a = b;
                     b = tmp;
                     b = tmp;
                 }
                 }
+                
                 if (msgRect.x + msgRect.width > screenWidth) msgRect.x -= (msgRect.x + msgRect.width) - screenWidth + 10;
                 if (msgRect.x + msgRect.width > screenWidth) msgRect.x -= (msgRect.x + msgRect.width) - screenWidth + 10;
 
 
                 // Draw chat bubble
                 // Draw chat bubble
@@ -286,11 +287,11 @@ int main(int argc, char **argv)
                 DrawText(info, (int)pos.x, (int)pos.y, 10, RAYWHITE);
                 DrawText(info, (int)pos.x, (int)pos.y, 10, RAYWHITE);
             }
             }
             //------------------------------------------------------------------------------
             //------------------------------------------------------------------------------
-
+            
             // Draw the info text
             // Draw the info text
             DrawText("These emojis have something to tell you, click each to find out!", (screenWidth - 650)/2, screenHeight - 40, 20, GRAY);
             DrawText("These emojis have something to tell you, click each to find out!", (screenWidth - 650)/2, screenHeight - 40, 20, GRAY);
             DrawText("Each emoji is a unicode character from a font, not a texture... Press [SPACEBAR] to refresh", (screenWidth - 484)/2, screenHeight - 16, 10, GRAY);
             DrawText("Each emoji is a unicode character from a font, not a texture... Press [SPACEBAR] to refresh", (screenWidth - 484)/2, screenHeight - 16, 10, GRAY);
-
+            
         EndDrawing();
         EndDrawing();
         //----------------------------------------------------------------------------------
         //----------------------------------------------------------------------------------
     }
     }

+ 2 - 1
examples/textures/textures_draw_tiled.c

@@ -12,6 +12,7 @@
 *   Copyright (c) 2020-2022 Vlad Adrian (@demizdor) and Ramon Santamaria (@raysan5)
 *   Copyright (c) 2020-2022 Vlad Adrian (@demizdor) and Ramon Santamaria (@raysan5)
 *
 *
 ********************************************************************************************/
 ********************************************************************************************/
+
 #include "raylib.h"
 #include "raylib.h"
 
 
 #define SIZEOF(A) (sizeof(A)/sizeof(A[0]))
 #define SIZEOF(A) (sizeof(A)/sizeof(A[0]))
@@ -22,7 +23,7 @@
 //------------------------------------------------------------------------------------
 //------------------------------------------------------------------------------------
 // Program main entry point
 // Program main entry point
 //------------------------------------------------------------------------------------
 //------------------------------------------------------------------------------------
-int main(int argc, char **argv)
+int main(void)
 {
 {
     // Initialization
     // Initialization
     //--------------------------------------------------------------------------------------
     //--------------------------------------------------------------------------------------