Minor format tweaks

This commit is contained in:
Ray
2025-11-23 13:21:31 +01:00
parent 84737a9fc1
commit f1719480e0
5 changed files with 13 additions and 13 deletions

View File

@ -1456,7 +1456,7 @@ int InitPlatform(void)
// find the EGL config that matches the previously setup GBM format
int found = 0;
for (EGLint i = 0; i < matchingNumConfigs; ++i)
for (EGLint i = 0; i < matchingNumConfigs; i++)
{
EGLint id = 0;
if (!eglGetConfigAttrib(platform.device, configs[i], EGL_NATIVE_VISUAL_ID, &id))
@ -1878,7 +1878,7 @@ static void InitEvdevInput(void)
platform.mouseFd = -1;
// Reset variables
for (int i = 0; i < MAX_TOUCH_POINTS; ++i)
for (int i = 0; i < MAX_TOUCH_POINTS; i++)
{
CORE.Input.Touch.position[i].x = -1;
CORE.Input.Touch.position[i].y = -1;
@ -2463,7 +2463,7 @@ static int FindNearestConnectorMode(const drmModeConnector *connector, uint widt
continue;
}
const int unusedPixels = (mode->hdisplay - width) * (mode->vdisplay - height);
const int unusedPixels = (mode->hdisplay - width)*(mode->vdisplay - height);
const int fpsDiff = mode->vrefresh - fps;
if ((unusedPixels < minUnusedPixels) ||