Skip to content

Commit 07ecddb

Browse files
committed
haiku: Minor code convention cleanups.
Reference PR #14778.
1 parent dc6775a commit 07ecddb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/video/haiku/SDL_bmodes.cc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,26 +243,24 @@ bool HAIKU_GetDisplayModes(SDL_VideoDevice *_this, SDL_VideoDisplay *display)
243243
display_mode this_bmode;
244244
display_mode *bmodes;
245245
uint32 count, i;
246-
bool r = false;
246+
bool retval = false;
247247

248248
// Get graphics-hardware supported modes
249-
if (bscreen.GetModeList(&bmodes, &count) == B_OK)
250-
{
251-
if (bscreen.GetMode(&this_bmode) == B_OK)
252-
{
249+
if (bscreen.GetModeList(&bmodes, &count) == B_OK) {
250+
if (bscreen.GetMode(&this_bmode) == B_OK) {
253251
for (i = 0; i < count; ++i) {
254252
// FIXME: Apparently there are errors with colorspace changes
255253
if (bmodes[i].space == this_bmode.space) {
256254
_BDisplayModeToSdlDisplayMode(&bmodes[i], &mode);
257255
SDL_AddFullscreenDisplayMode(display, &mode);
258256
}
259257
}
260-
r = true;
258+
retval = true;
261259
}
262260
free(bmodes); // This should NOT be SDL_free()
263261
}
264262

265-
return r;
263+
return retval;
266264
}
267265

268266

0 commit comments

Comments
 (0)