diff options
| author | Ray <[email protected]> | 2024-06-30 11:07:38 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-06-30 11:07:38 +0200 |
| commit | 17cbc75aa710ed629560580e8105d637b3124653 (patch) | |
| tree | d5fbf88128d5e1c083c78dd30b6fd7d5c6c0f968 /src/platforms/rcore_drm.c | |
| parent | a805f46f552626c9d6b39baeda2d03963ab53cb4 (diff) | |
| download | raylib-17cbc75aa710ed629560580e8105d637b3124653.tar.gz raylib-17cbc75aa710ed629560580e8105d637b3124653.zip | |
REVIEWED: Formatting, follow raylib coding conventions
Diffstat (limited to 'src/platforms/rcore_drm.c')
| -rw-r--r-- | src/platforms/rcore_drm.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/platforms/rcore_drm.c b/src/platforms/rcore_drm.c index ba607146..17a8e4d0 100644 --- a/src/platforms/rcore_drm.c +++ b/src/platforms/rcore_drm.c @@ -398,7 +398,7 @@ int GetMonitorWidth(int monitor) { width = platform.connector->modes[platform.modeIndex].hdisplay; } - + return width; } @@ -415,7 +415,7 @@ int GetMonitorHeight(int monitor) { height = platform.connector->modes[platform.modeIndex].vdisplay; } - + return height; } @@ -479,7 +479,7 @@ const char *GetMonitorName(int monitor) { name = platform.connector->modes[platform.modeIndex].name; } - + return name; } @@ -1136,7 +1136,8 @@ void ClosePlatform(void) // Close the evdev devices - if (platform.mouseFd != -1) { + if (platform.mouseFd != -1) + { close(platform.mouseFd); platform.mouseFd = -1; } @@ -1924,9 +1925,7 @@ static int FindNearestConnectorMode(const drmModeConnector *connector, uint widt const int nearestHeightDiff = abs(platform.connector->modes[nearestIndex].vdisplay - height); const int nearestFpsDiff = abs(platform.connector->modes[nearestIndex].vrefresh - fps); - if ((widthDiff < nearestWidthDiff) || (heightDiff < nearestHeightDiff) || (fpsDiff < nearestFpsDiff)) { - nearestIndex = i; - } + if ((widthDiff < nearestWidthDiff) || (heightDiff < nearestHeightDiff) || (fpsDiff < nearestFpsDiff)) nearestIndex = i; } return nearestIndex; |
