From 07ecddb925fc1215fe68703d48ed646aefafb238 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 7 Jan 2026 14:05:38 -0500
Subject: [PATCH] haiku: Minor code convention cleanups.
Reference PR #14778.
---
src/video/haiku/SDL_bmodes.cc | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/video/haiku/SDL_bmodes.cc b/src/video/haiku/SDL_bmodes.cc
index 4d4d6db5b83c6..0950e580ab2ee 100644
--- a/src/video/haiku/SDL_bmodes.cc
+++ b/src/video/haiku/SDL_bmodes.cc
@@ -243,13 +243,11 @@ bool HAIKU_GetDisplayModes(SDL_VideoDevice *_this, SDL_VideoDisplay *display)
display_mode this_bmode;
display_mode *bmodes;
uint32 count, i;
- bool r = false;
+ bool retval = false;
// Get graphics-hardware supported modes
- if (bscreen.GetModeList(&bmodes, &count) == B_OK)
- {
- if (bscreen.GetMode(&this_bmode) == B_OK)
- {
+ if (bscreen.GetModeList(&bmodes, &count) == B_OK) {
+ if (bscreen.GetMode(&this_bmode) == B_OK) {
for (i = 0; i < count; ++i) {
// FIXME: Apparently there are errors with colorspace changes
if (bmodes[i].space == this_bmode.space) {
@@ -257,12 +255,12 @@ bool HAIKU_GetDisplayModes(SDL_VideoDevice *_this, SDL_VideoDisplay *display)
SDL_AddFullscreenDisplayMode(display, &mode);
}
}
- r = true;
+ retval = true;
}
free(bmodes); // This should NOT be SDL_free()
}
- return r;
+ return retval;
}