aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-02-13 17:08:09 +0100
committerraysan5 <raysan5@gmail.com>2016-02-13 17:08:09 +0100
commit94c92a58a1a8131c4d71ba32f18e836f6178231c (patch)
tree3ce67ad7c82153f7e43fee43f075f34c27fd5248 /src
parent9c9aeaef47fe612dbc0f446920fca9cb54781aef (diff)
downloadraylib-94c92a58a1a8131c4d71ba32f18e836f6178231c.tar.gz
raylib-94c92a58a1a8131c4d71ba32f18e836f6178231c.zip
Some tweaks
Diffstat (limited to 'src')
-rw-r--r--src/gestures.c4
-rw-r--r--src/raygui.c11
2 files changed, 7 insertions, 8 deletions
diff --git a/src/gestures.c b/src/gestures.c
index a2744460..16442e45 100644
--- a/src/gestures.c
+++ b/src/gestures.c
@@ -2,9 +2,9 @@
*
* raylib Gestures System - Gestures Processing based on input gesture events (touch/mouse)
*
-* Reviewed by Ramon Santamaria
-* Redesigned by Albert Martos and Ian Eito
* Initial design by Marc Palau
+* Redesigned by Albert Martos and Ian Eito
+* Reviewed by Ramon Santamaria (@raysan5)
*
* This software is provided "as-is", without any express or implied warranty. In no event
* will the authors be held liable for any damages arising from the use of this software.
diff --git a/src/raygui.c b/src/raygui.c
index 2c68c96f..60df2121 100644
--- a/src/raygui.c
+++ b/src/raygui.c
@@ -2,7 +2,8 @@
*
* raygui - raylib IMGUI system (Immedite Mode GUI)
*
-* Copyright (c) 2015 Kevin Gato, Daniel Nicolás, Sergio Martinez and Ramon Santamaria
+* Initial design by Kevin Gato and Daniel Nicolás
+* Reviewed by Albert Martos, Ian Eito, Sergio Martinez and Ramon Santamaria (@raysan5)
*
* This software is provided "as-is", without any express or implied warranty. In no event
* will the authors be held liable for any damages arising from the use of this software.
@@ -856,10 +857,6 @@ char *GuiTextBox(Rectangle bounds, char *text)
return text;
}
-// TODO: GuiBox?
-// TODO: GuiWindow?
-// TODO: GuiPanel?
-
// Save current GUI style into a text file
void SaveGuiStyle(const char *fileName)
{
@@ -873,12 +870,14 @@ void SaveGuiStyle(const char *fileName)
// Load GUI style from a text file
void LoadGuiStyle(const char *fileName)
{
+ #define MAX_STYLE_PROPERTIES 128
+
typedef struct {
char id[64];
int value;
} StyleProperty;
- StyleProperty *styleProp = (StyleProperty *)malloc(128*sizeof(StyleProperty));;
+ StyleProperty *styleProp = (StyleProperty *)malloc(MAX_STYLE_PROPERTIES*sizeof(StyleProperty));;
int counter = 0;
FILE *styleFile = fopen(fileName, "rt");