Commit graph

4296 commits

Author SHA1 Message Date
Simon Howard
4127fabfb3
Merge pull request #1132 from turol/const
Const correctness fixes in setup program
2019-01-23 11:28:25 -05:00
Fabian Greffrath
6e3418c6a5 configure: relax libpng version check to >= 1.2.50
Since this version is provided by Ubuntu trusty, we will get
Travis.CI builds with PNG support.
2019-01-23 12:38:57 +01:00
Fabian Greffrath
2f5571d72c Merge branch 'master' of https://github.com/chocolate-doom/chocolate-doom 2019-01-23 10:12:12 +01:00
Fabian Greffrath
3409f7a871 add libpng-dev to the dependencies for the travis build 2019-01-23 10:11:11 +01:00
Turo Lamminen
c5d8067d38 setup: Make mission_config_t string members const 2019-01-22 19:26:59 +02:00
Turo Lamminen
8f82960fbe setup: Fix const correctness issue in SetChatMacroDefaults 2019-01-22 19:22:40 +02:00
Turo Lamminen
9209085d85 setup: Make game_title variable const 2019-01-22 19:19:29 +02:00
Turo Lamminen
cf21664839 setup: Fix const correctness issue in GetLaunchButton 2019-01-22 19:18:51 +02:00
Turo Lamminen
0ad55d18f3 setup: Make known_joystick_t name member const 2019-01-22 19:16:27 +02:00
Turo Lamminen
5a7cb09524 setup: Make joystick_config_t name member const 2019-01-22 19:15:41 +02:00
Turo Lamminen
0ec616b898 setup: Make CalibrationLabel return value const 2019-01-22 19:12:59 +02:00
Turo Lamminen
fa22df1349 setup: Make ServerQueryWindow title parameter const 2019-01-22 19:11:14 +02:00
Turo Lamminen
94f59664ca setup: Make StartGameMenu window_title parameter const 2019-01-22 19:09:42 +02:00
Turo Lamminen
80816d0725 setup: Make AddMouseControl label parameter const 2019-01-22 19:07:54 +02:00
Turo Lamminen
6e18c2ecdc setup: Make GetGameTitle return value const 2019-01-22 19:06:36 +02:00
Turo Lamminen
ea34b7bcf0 setup: Make GetExecutableName return value const 2019-01-22 19:05:40 +02:00
Turo Lamminen
f766714b81 setup: Make AddSectionLabel title parameter const 2019-01-22 19:04:12 +02:00
Turo Lamminen
e0b005e61a setup: Make AddKeyControl name parameter const 2019-01-22 19:02:29 +02:00
Turo Lamminen
ed72f3fc75 setup: Make AddJoystickControl label parameter const 2019-01-22 19:01:12 +02:00
Turo Lamminen
04535a58e8 setup: Make TempFile parameter const 2019-01-22 19:00:00 +02:00
Turo Lamminen
3171e5189e setup: Fix const correctness issue in TempFile 2019-01-22 18:57:40 +02:00
Turo Lamminen
efc804dc55 setup: Make AddCmdLineParameter format parameter const 2019-01-22 18:56:35 +02:00
Turo Lamminen
3166cfd54c misc: Fix const correctness issue in M_BaseName 2019-01-22 18:53:23 +02:00
Fabian Greffrath
921666f704 glob: let I_NextGlob() return NULL if (glob == NULL)
If a non-existent directory is passed over to I_StartGlob(), e.g. when
moving config files between computers, it will return NULL. If this
return value is then fed into I_NextGlob(), it will trigger a
segmentation fault. Add a check to the latter if (glob == NULL) and
let it return NULL itself in this case.
2019-01-20 20:48:30 +01:00
Fabian Greffrath
c4b93eb794 add terminating NULL to M_StringJoin() call
Thanks SiFi270 for reporting this in the Crispy forums.
2019-01-12 17:58:57 +01:00
Simon Howard
af80499016 heretic: Apply HHE level names in intermission screen.
The same string is used for the level name in the automap and intermission
screen, but string replacements were only being applied for the automap.

This fixes #1106. Thanks to @ETTiNGRiNDER for the report.
2018-12-28 18:31:33 -05:00
Simon Howard
817945120f setup: Set "Romero Blue" for setup tool.
This uses Romero's "funky blue" color that was used in earlier
versions of the setup tool (and later disabled). I've been using this
in my build of the setup tool for the past few months and kind of like
it; it also gives a fresh look to Chocolate Doom's setup tool.
2018-12-28 16:29:12 -05:00
Simon Howard
8b90786fab textscreen: Add API to change color palette.
This is possible under DOS as well by writing to the appropriate VGA
registers, and the vanilla setup tool actually does this in earlier
versions to set "Romero Blue".
2018-12-28 16:27:23 -05:00
Simon Howard
12c984cff8 textscreen: Use cyan bg for window action hover.
This makes the hover background consistent with other widgets instead
of giving a black background that is inconsistent. As part of this,
change the foreground text color when hovering so that the foreground
does not clash with the background, and the text stays readable.
2018-12-28 16:25:55 -05:00
Simon Howard
700644d667 textscreen: Upgrade Doxyfile to latest version.
Resolves some minor warnings about config variables which are no longer
used.
2018-12-26 16:10:35 -05:00
Simon Howard
f0d613f188 textscreen: Remove superfluous first_widget param.
This avoids a warning from doxygen about the fact that the parameter
is undocumented. Since it's not necessary anyway, it can just be
removed.
2018-12-26 13:58:58 -05:00
Simon Howard
211dd15229 textscreen: Fix directory strip in doxygen output.
This was set to "src" which is wrong, and what's actually wanted is
to strip the directory from where doxygen is run. This avoids including
the full directory path in all output.
2018-12-26 13:51:20 -05:00
Simon Howard
b9f3fca512 osx: Use PACKAGE_TARNAME for autoload path.
Instead of hard-coding.
2018-12-24 01:12:54 -05:00
Simon Howard
3175bb59f3 osx: Add menu item to open autoload folder. 2018-12-24 01:08:32 -05:00
Fabian Greffrath
05c3023d2b video: point destroyed textures to NULL
When a renderer gets destroyed, all associated textures get destroyed
as well, so point them to NULL to prevent them being destroyed again.
2018-12-21 13:14:56 +01:00
Fabian Greffrath
1f07cbb796 Merge branch 'master' of https://github.com/chocolate-doom/chocolate-doom 2018-12-20 12:00:04 +01:00
Fabian Greffrath
07e9f3b987 video: create new texture before destroying old one
This fixes a racing condition which would leave us with no
intermediate texture available until the new one is created.
2018-12-20 11:05:41 +01:00
Jonathan Dowland
3235eb707a
Merge pull request #1124 from mfrancis95/master
Heretic: Gracefully error out when player starts are missing (fix #1122)
2018-12-19 13:39:46 +00:00
mfrancis95
3181ed3cae Heretic: Gracefully error out when player starts are missing (fix #1122) 2018-12-18 10:58:51 -05:00
Fabian Greffrath
e9b9fefcf6 setup: fix building on Windows 2018-12-18 09:19:22 +01:00
Simon Howard
6904023bfd
Merge pull request #1121 from turol/const
Const correctness
2018-12-17 09:46:51 -05:00
Simon Howard
6a6d49eaf8 setup: Fix bug opening music packs on Windows.
The previous code was opening a command prompt instead of an Explorer
window. I'm following the advice from this StackOverflow question on how
to do this properly:
<https://stackoverflow.com/questions/354902/open-in-explorer>

Thanks to /u/Ohrami3 on Reddit for discovering this bug.
2018-12-17 09:07:20 -05:00
Simon Howard
6764d05ccc mode: Add v1.2 to valid versions list. 2018-12-17 08:54:50 -05:00
Fabian Greffrath
482d302ee8
Merge pull request #1119 from mfrancis95/master
Fix memory leak in Strife related to finding voices.wad and make finding it case-insensitive
2018-12-12 21:00:56 +01:00
mfrancis95
b18f4641c3 Strife: Make finding VOICES.wad case-insensitive when the -iwad parameter is used (fix #1120) 2018-12-12 13:28:07 -05:00
Turo Lamminen
a857a14163 net: Fix format string warning 2018-12-12 12:24:08 +02:00
Turo Lamminen
264ff37298 net: Make NET_ResolveAddress addr parameter const 2018-12-11 19:46:39 +02:00
Turo Lamminen
f7b11a3775 net: Make _net_module_s ResolveAddress function parameter const and fix functions to match 2018-12-11 19:45:08 +02:00
Turo Lamminen
837a1ce0a9 net: Make NET_SV_SendReject msg parameter const 2018-12-11 19:42:31 +02:00
Turo Lamminen
fde56790b5 net: Mark NET_SV_SendConsoleMessage with PRINTF_ATTR 2018-12-11 19:41:36 +02:00