summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-26 23:56:38 +0200
committerRay <[email protected]>2023-10-26 23:56:38 +0200
commitd0141bd105b491fbef9ea5fb8c3ba26ba0432717 (patch)
treea54ce33c86259bd70ed4552a78a9dbef470b5cbb /src
parente4547eb4225189eadd2c6f4e87b5e32c4a285b88 (diff)
downloadraylib-d0141bd105b491fbef9ea5fb8c3ba26ba0432717.tar.gz
raylib-d0141bd105b491fbef9ea5fb8c3ba26ba0432717.zip
Remove trail spaces
Diffstat (limited to 'src')
-rw-r--r--src/platforms/rcore_android.c4
-rw-r--r--src/platforms/rcore_drm.c14
-rw-r--r--src/platforms/rcore_template.c14
-rw-r--r--src/platforms/rcore_web.c12
4 files changed, 22 insertions, 22 deletions
diff --git a/src/platforms/rcore_android.c b/src/platforms/rcore_android.c
index 4faf73b7..83450bb0 100644
--- a/src/platforms/rcore_android.c
+++ b/src/platforms/rcore_android.c
@@ -547,7 +547,7 @@ int InitPlatform(void)
//AConfiguration_getKeyboard(platform.app->config);
//AConfiguration_getScreenSize(platform.app->config);
//AConfiguration_getScreenLong(platform.app->config);
-
+
// Set some default window flags
CORE.Window.flags &= ~FLAG_WINDOW_HIDDEN; // false
CORE.Window.flags &= ~FLAG_WINDOW_MINIMIZED; // false
@@ -569,7 +569,7 @@ int InitPlatform(void)
// Initialize storage system
//----------------------------------------------------------------------------
InitAssetManager(platform.app->activity->assetManager, platform.app->activity->internalDataPath); // Initialize assets manager
-
+
CORE.Storage.basePath = platform.app->activity->internalDataPath; // Define base path for storage
//----------------------------------------------------------------------------
diff --git a/src/platforms/rcore_drm.c b/src/platforms/rcore_drm.c
index 9609c50d..6f459b1a 100644
--- a/src/platforms/rcore_drm.c
+++ b/src/platforms/rcore_drm.c
@@ -864,14 +864,14 @@ int InitPlatform(void)
// There must be at least one frame displayed before the buffers are swapped
//eglSwapInterval(platform.device, 1);
-
+
EGLBoolean result = eglMakeCurrent(platform.device, platform.surface, platform.surface, platform.context);
// Check surface and context activation
if (result != EGL_FALSE)
{
CORE.Window.ready = true;
-
+
CORE.Window.render.width = CORE.Window.screen.width;
CORE.Window.render.height = CORE.Window.screen.height;
CORE.Window.currentFbo.width = CORE.Window.render.width;
@@ -883,9 +883,9 @@ int InitPlatform(void)
TRACELOG(LOG_INFO, " > Render size: %i x %i", CORE.Window.render.width, CORE.Window.render.height);
TRACELOG(LOG_INFO, " > Viewport offsets: %i, %i", CORE.Window.renderOffset.x, CORE.Window.renderOffset.y);
}
- else
- {
- TRACELOG(LOG_FATAL, "PLATFORM: Failed to initialize graphics device");
+ else
+ {
+ TRACELOG(LOG_FATAL, "PLATFORM: Failed to initialize graphics device");
return -1;
}
@@ -905,7 +905,7 @@ int InitPlatform(void)
// NOTE: GL procedures address loader is required to load extensions
rlLoadExtensions(eglGetProcAddress);
//----------------------------------------------------------------------------
-
+
// Initialize input events system
//----------------------------------------------------------------------------
InitEvdevInput(); // Evdev inputs initialization
@@ -922,7 +922,7 @@ int InitPlatform(void)
//----------------------------------------------------------------------------
CORE.Storage.basePath = GetWorkingDirectory();
//----------------------------------------------------------------------------
-
+
TRACELOG(LOG_INFO, "PLATFORM: DRM: Initialized successfully");
return 0;
diff --git a/src/platforms/rcore_template.c b/src/platforms/rcore_template.c
index 11ce45c1..1cebfa79 100644
--- a/src/platforms/rcore_template.c
+++ b/src/platforms/rcore_template.c
@@ -522,7 +522,7 @@ int InitPlatform(void)
if (result != EGL_FALSE)
{
CORE.Window.ready = true;
-
+
CORE.Window.render.width = CORE.Window.screen.width;
CORE.Window.render.height = CORE.Window.screen.height;
CORE.Window.currentFbo.width = CORE.Window.render.width;
@@ -534,13 +534,13 @@ int InitPlatform(void)
TRACELOG(LOG_INFO, " > Render size: %i x %i", CORE.Window.render.width, CORE.Window.render.height);
TRACELOG(LOG_INFO, " > Viewport offsets: %i, %i", CORE.Window.renderOffset.x, CORE.Window.renderOffset.y);
}
- else
- {
- TRACELOG(LOG_FATAL, "PLATFORM: Failed to initialize graphics device");
+ else
+ {
+ TRACELOG(LOG_FATAL, "PLATFORM: Failed to initialize graphics device");
return -1;
}
//----------------------------------------------------------------------------
-
+
// If everything work as expected, we can continue
CORE.Window.render.width = CORE.Window.screen.width;
CORE.Window.render.height = CORE.Window.screen.height;
@@ -558,7 +558,7 @@ int InitPlatform(void)
//----------------------------------------------------------------------------
rlLoadExtensions(eglGetProcAddress);
//----------------------------------------------------------------------------
-
+
// TODO: Initialize input events system
// It could imply keyboard, mouse, gamepad, touch...
// Depending on the platform libraries/SDK it could use a callbacks mechanims
@@ -576,7 +576,7 @@ int InitPlatform(void)
//----------------------------------------------------------------------------
CORE.Storage.basePath = GetWorkingDirectory();
//----------------------------------------------------------------------------
-
+
TRACELOG(LOG_INFO, "PLATFORM: CUSTOM: Initialized successfully");
return 0;
diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c
index e2373e45..d797d99d 100644
--- a/src/platforms/rcore_web.c
+++ b/src/platforms/rcore_web.c
@@ -865,7 +865,7 @@ int InitPlatform(void)
glfwMakeContextCurrent(platform.handle);
result = true; // TODO: WARNING: glfwGetError(NULL); symbol can not be found in Web
-
+
// Check context activation
if (result == true) //(result != GLFW_NO_WINDOW_CONTEXT) && (result != GLFW_PLATFORM_ERROR))
{
@@ -885,9 +885,9 @@ int InitPlatform(void)
TRACELOG(LOG_INFO, " > Render size: %i x %i", CORE.Window.render.width, CORE.Window.render.height);
TRACELOG(LOG_INFO, " > Viewport offsets: %i, %i", CORE.Window.renderOffset.x, CORE.Window.renderOffset.y);
}
- else
- {
- TRACELOG(LOG_FATAL, "PLATFORM: Failed to initialize graphics device");
+ else
+ {
+ TRACELOG(LOG_FATAL, "PLATFORM: Failed to initialize graphics device");
return -1;
}
@@ -896,12 +896,12 @@ int InitPlatform(void)
// If graphic device is no properly initialized, we end program
if (!CORE.Window.ready) { TRACELOG(LOG_FATAL, "PLATFORM: Failed to initialize graphic device"); return -1; }
else SetWindowPosition(GetMonitorWidth(GetCurrentMonitor())/2 - CORE.Window.screen.width/2, GetMonitorHeight(GetCurrentMonitor())/2 - CORE.Window.screen.height/2);
-
+
// Load OpenGL extensions
// NOTE: GL procedures address loader is required to load extensions
rlLoadExtensions(glfwGetProcAddress);
//----------------------------------------------------------------------------
-
+
// Initialize input events callbacks
//----------------------------------------------------------------------------
// Setup callback functions for the DOM events