summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-03-22 18:45:41 +0100
committerRay <[email protected]>2022-03-22 18:45:41 +0100
commitcb62cb675fb4b07a7afbc5ef53f5e502b3a9ef7e (patch)
treedcae61a846051cb54acacf10157e11ca6153e298
parent40794da9e4d5ea677bf592b5af607a7d903e05a8 (diff)
downloadraylib-cb62cb675fb4b07a7afbc5ef53f5e502b3a9ef7e.tar.gz
raylib-cb62cb675fb4b07a7afbc5ef53f5e502b3a9ef7e.zip
Minor tweaks `const`
-rw-r--r--examples/core/core_basic_window_web.c4
-rw-r--r--examples/shaders/shaders_hot_reloading.c4
-rw-r--r--examples/shaders/shaders_raymarching.c4
-rw-r--r--examples/textures/textures_draw_tiled.c4
-rw-r--r--src/rcore.c1
5 files changed, 9 insertions, 8 deletions
diff --git a/examples/core/core_basic_window_web.c b/examples/core/core_basic_window_web.c
index 8ce1922a..119d4b00 100644
--- a/examples/core/core_basic_window_web.c
+++ b/examples/core/core_basic_window_web.c
@@ -24,8 +24,8 @@
//----------------------------------------------------------------------------------
// Global Variables Definition
//----------------------------------------------------------------------------------
-int screenWidth = 800;
-int screenHeight = 450;
+const int screenWidth = 800;
+const int screenHeight = 450;
//----------------------------------------------------------------------------------
// Module Functions Declaration
diff --git a/examples/shaders/shaders_hot_reloading.c b/examples/shaders/shaders_hot_reloading.c
index 6f66f361..b6ca8b68 100644
--- a/examples/shaders/shaders_hot_reloading.c
+++ b/examples/shaders/shaders_hot_reloading.c
@@ -27,8 +27,8 @@ int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
- int screenWidth = 800;
- int screenHeight = 450;
+ const int screenWidth = 800;
+ const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - hot reloading");
diff --git a/examples/shaders/shaders_raymarching.c b/examples/shaders/shaders_raymarching.c
index 5ffe134b..ad2e6285 100644
--- a/examples/shaders/shaders_raymarching.c
+++ b/examples/shaders/shaders_raymarching.c
@@ -24,8 +24,8 @@ int main(void)
{
// Initialization
//--------------------------------------------------------------------------------------
- int screenWidth = 800;
- int screenHeight = 450;
+ const int screenWidth = 800;
+ const int screenHeight = 450;
SetConfigFlags(FLAG_WINDOW_RESIZABLE);
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - raymarching shapes");
diff --git a/examples/textures/textures_draw_tiled.c b/examples/textures/textures_draw_tiled.c
index bc2b1724..f8e78650 100644
--- a/examples/textures/textures_draw_tiled.c
+++ b/examples/textures/textures_draw_tiled.c
@@ -19,8 +19,8 @@ int main(int argc, char **argv)
{
// Initialization
//--------------------------------------------------------------------------------------
- int screenWidth = 800;
- int screenHeight = 450;
+ const int screenWidth = 800;
+ const int screenHeight = 450;
SetConfigFlags(FLAG_WINDOW_RESIZABLE); // Make the window resizable
InitWindow(screenWidth, screenHeight, "raylib [textures] example - Draw part of a texture tiled");
diff --git a/src/rcore.c b/src/rcore.c
index 3d01ca5b..d4b10504 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -6647,6 +6647,7 @@ static int FindNearestConnectorMode(const drmModeConnector *connector, uint widt
#if defined(SUPPORT_EVENTS_AUTOMATION)
// NOTE: Loading happens over AutomationEvent *events
+// TODO: This system should probably be redesigned
static void LoadAutomationEvents(const char *fileName)
{
//unsigned char fileId[4] = { 0 };