graham sanderson
368a6210f7
squashed rp2040-doom changes
2022-03-07 12:44:30 -06:00
Fabian Greffrath
59f737ad1b
txt: free already loaded libraries on LoadLibraryW() failure
...
This fixes a future "Resource leak" cppcheck error.
2019-01-28 09:34:12 +01: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
8c43337af2
textscreen: Allow any widget in action area.
...
It may be desirable to wrap a window action in a txt_conditional_t
sometimes so that actions dynamically appear based on how the config
changes. So change the TXT_SetWindowAction() API to accept any widget
instead of mandating a txt_window_action_t.
2018-10-21 17:40:18 -04:00
Mike Swanson
cc9c4ef380
Makefile.am: add CMakeLists.txt and win32 to EXTRA_DIST
...
Closes : #1055
2018-06-05 10:41:38 -07:00
Alex Mayfield
2eb722d3a4
Link against libpng and libm
...
Tested against Ubuntu 18.04.
2018-05-26 17:12:02 -04:00
Alex Mayfield
f8810f763c
Chocolate Doom now builds
2018-05-02 21:23:00 -04:00
Alex Mayfield
b9422484fb
Initial stab at SDL2 and textscreen
2018-05-01 23:10:46 -04:00
Turo Lamminen
f186ecd1ae
textscreen: Fix const correctness issue in guitest
2018-03-27 19:35:13 +03:00
Turo Lamminen
695895ddb2
textscreen: Make AddOperatorButton label parameter const in calculator example
2018-03-27 19:33:52 +03:00
Turo Lamminen
fccdde81b5
Make TXT_NewDropdownList values parameter const
2018-03-27 19:28:43 +03:00
Turo Lamminen
0c4fe5bbe5
Make TXT_NewFileSelector prompt parameter const
2018-03-27 19:21:38 +03:00
Turo Lamminen
061a1dee44
textscreen: Make txt_fileselect_s prompt member const
2018-03-27 19:20:18 +03:00
Turo Lamminen
d4ef25a0cf
Make TXT_SelectFile extensions parameter const
...
This is complicated because we must fix all the callers at the same time
2018-03-24 16:02:00 +02:00
Turo Lamminen
cd65e9dae0
textscreen: Fix constness issue in TXT_SelectFile
2018-03-20 19:02:49 +02:00
Turo Lamminen
4c069fef88
textscreen: Fix one more variant of TXT_SelectFile
...
It's unused but in case someone wants to turn it back on.
2018-03-20 19:02:45 +02:00
Ioan Chera
cc8faa989c
Clean-up of AppleScript-generating C string processing
...
* Functions which return something that must be freed now have a Create or Generate in their name
* Fix a buffer overflow risk in CreateEscapedString
* Ensure const-correctness
* Verify malloc result
* Updated guitest with file extensions which would have crashed the previous code.
2018-03-18 12:08:35 +02:00
Ioan Chera
2ecf987df1
Fix TXT_SelectFile for macOS
...
First parameter needed to be const, and the content updated to work under this restriction.
2018-03-18 09:42:17 +02:00
Mike Swanson
3fd5eed6b0
Add a const for TXT_SelectFile in the Windows build too
2018-03-17 10:29:12 -07:00
Mike Swanson
de175686e6
Merge pull request #999 from turol/const
...
Improve const correctness
2018-03-16 22:00:18 -07:00
Simon Howard
1db716fa17
textscreen: Simplify AppleScript for fileselect.
...
Since macOS 10.9 it is no longer to "tell an application" in order
to display pop-up UI elements like the file select dialogs. Quote:
> osascript(1) is now a “UI element” process and can therefore display
> its own UI, such as using display dialog; telling another application
> such as System Events is no longer necessary. [12365409]
As well as simplifying the wrapper this also fixes some issues with the
pop-up dialogs where window focus was getting messed up after selecting
a file.
2018-03-16 23:41:44 -04:00
Turo Lamminen
aacff41c26
Make TXT_NewRadioButton label parameter const
2018-03-13 19:57:07 +02:00
Turo Lamminen
71ea0f904f
Make TXT_SetRadioButtonLabel value parameter const
2018-03-13 19:53:42 +02:00
Turo Lamminen
569787da58
Make TXT_NewSeparator parameter const
2018-03-13 19:47:59 +02:00
Turo Lamminen
a6fbae76cd
Make TXT_SetSeparatorLabel label parameter const
2018-03-13 19:46:36 +02:00
Turo Lamminen
94d85c51b0
Make TXT_SetWindowHelpURL help_url parameter const
2018-03-13 19:44:25 +02:00
Turo Lamminen
232c968ed9
textscreen: Make help_url member const in txt_window_s
2018-03-13 19:33:51 +02:00
Turo Lamminen
592edc0d87
Make TXT_OpenURL parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
10fda2ac53
Make TXT_MessageBox title character const
2018-03-13 19:33:51 +02:00
Turo Lamminen
334232d3b4
Make TXT_MessageBox message parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
6283e91fbd
Make TXT_NewLabel parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
50e55526b3
Make TXT_SetLabel value parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
aa555a22c1
textscreen: Use more const-correct loop in TXT_SetLabel
2018-03-13 19:33:51 +02:00
Turo Lamminen
19a0939300
Make TXT_NewWindow parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
49b5751693
Make TXT_SelectFile window_title parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
90ded64b2b
textscreen: Make ExpandExtension parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
5f82ebd75b
Make TXT_NewInvertedCheckBox label parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
27a28b8ad9
Make TXT_NewCheckBox label parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
898442b101
Make TXT_NewButton2 label parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
4b48cd7f9d
Make TXT_NewButton parameter const
2018-03-13 19:33:51 +02:00
Turo Lamminen
44b80b2a7a
Make TXT_SetButtonLabel label parameter const
2018-03-13 19:33:47 +02:00
Turo Lamminen
1758e89080
textscreen: Make SDLWheelToTXTButton parameter const
2018-03-13 19:33:47 +02:00
Turo Lamminen
10d2130a2a
textscreen: Make TranslateKeysym parameter const
2018-03-13 19:33:47 +02:00
Turo Lamminen
fff3741c78
textscreen: Make FontForName parameter const
2018-03-13 19:33:47 +02:00
Turo Lamminen
54a38844f7
textscreen: Make name member const in txt_font_t
2018-03-13 19:33:38 +02:00
Turo Lamminen
83d0f369df
Make TXT_SetDesktopTitle parameter const
2018-03-13 12:31:51 +02:00