Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LeoD
EDuke32
Commits
d11731fa
Commit
d11731fa
authored
Apr 22, 2022
by
Richard Gobeille
Browse files
engine: print display name to console when detecting video modes
parent
d753d281
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/sdlayer.cpp
View file @
d11731fa
...
...
@@ -1360,9 +1360,15 @@ void videoGetModes(int display)
if
(
modeschecked
||
novideo
)
return
;
else
{
auto
name
=
Xstrdup
(
videoGetDisplayName
(
display
)),
shortened
=
strtok
(
name
,
"("
);
if
(
!
shortened
)
shortened
=
name
;
VLOG_F
(
LOG_GFX
,
"Detecting video modes for display %d (%s)..."
,
display
,
shortened
);
DO_FREE_AND_NULL
(
name
);
}
validmodecnt
=
0
;
VLOG_F
(
LOG_GFX
,
"Detecting video modes..."
);
// do fullscreen modes first
for
(
i
=
0
;
i
<
SDL_GetNumDisplayModes
(
display
);
i
++
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment