visualtest/testsprite2_sample.parameters
author Ryan C. Gordon
Mon, 01 Jan 2018 19:16:51 -0500
changeset 11803 454f6dc9cb85
parent 7924 fcb86d323770
permissions -rwxr-xr-x
windows: Remove references to GetVersionExA (thanks, Andrew Pilley!).

"GetVersionExA is deprecated in windows 8.1 and above's SDK, causing a warning
when building against the win10 SDK. Attached patch cleans up the usage for a
warning-free build.

GetVersionExA was being used to test to see if SDL was running on win9x or
winnt. A quick chat with Ryan on twitter suggested that SDL doesn't
officially support win9x anymore, so the call to this can be outright removed.

As an aside, replacing the call to GetVersionExA with VerifyVersionInfoA (the
recommended path) would have been pointless, as VerifyVersionInfoA only
supports VER_PLATFORM_WIN32_NT and doesn't officially support any other value
for dwPlatformId currently. (And it's probable that win9x SDKs didn't have
VerifyVersionInfo* in them anyway.)"

Fixes Bugzilla #4019.
icculus@7924
     1
# parameter name, type, value range, required, categories
icculus@7924
     2
--gldebug, boolean, [], false, []
icculus@7924
     3
--info, enum, [all video modes render event], false, []
icculus@7924
     4
--log, enum, [all error system audio video render input], false, []
icculus@7924
     5
--display, integer, [1 5], false, []
icculus@7924
     6
--fullscreen, boolean, [], false, []
icculus@7924
     7
--fullscreen-desktop, boolean, [], false, []
icculus@7924
     8
# --windows, integer, [1 5], false, [] # this option is not supported yet
icculus@7924
     9
--title, enum, [vartest bartest footest], false, []
icculus@7924
    10
--icon, enum, [icon.bmp], false, []
icculus@7924
    11
--center, boolean, [], false, []
icculus@7924
    12
--position, enum, [300,300], false, []
icculus@7924
    13
--geometry, enum, [500x500], false, []
icculus@7924
    14
--min-geometry, enum, [100x100], false, []
icculus@7924
    15
--max-geometry, enum, [600x600 700x700], false, []
icculus@7924
    16
--logical, enum, [500x500 550x450], false, []
icculus@7924
    17
--scale, integer, [1 5], false, []
icculus@7924
    18
--depth, integer, [1 5], false, []
icculus@7924
    19
--refresh, integer, [1 5], false, []
icculus@7924
    20
--vsync, boolean, [], false, []
icculus@7924
    21
--noframe, boolean, [], false, []
icculus@7924
    22
--resize, boolean, [], false, []
icculus@7924
    23
--minimize, boolean, [], false, []
icculus@7924
    24
--maximize, boolean, [], false, []
icculus@7924
    25
--grab, boolean, [], false, [mouse]
icculus@7924
    26
--blend, enum, [none blend add mod], false, []
icculus@7924
    27
--cyclecolor, boolean, [], false, []
icculus@7924
    28
--cyclealpha, boolean, [], false, []
icculus@7924
    29
--iterations, integer, [10 100], false, []