summaryrefslogtreecommitdiff
path: root/textscreen/txt_sdl.c
AgeCommit message (Collapse)Author
2014-04-12textscreen: Init screen at native bit depth.Simon Howard
Always call SDL_SetVideoMode with bpp=0 to use the desktop's native bit depth, and instead draw into an intermediate 8-bit screenbuffer surface. This ensures that we do not encounter any palette mess-ups as on some systems true 8-bit screen modes are poorly supported.
2014-04-01misc: Fix safe vsnprintf() function.Simon Howard
An off-by-one error in the function caused the strings to be truncated one character too early. Change the return value check so that negative values are also interpreted as indicating truncation; this is the behavior of the Win32 API.
2014-04-01textscreen: Use safe string functions.Simon Howard
Define TXT_{StringCopy,StringConcat,snprintf,vsnprintf} as analogs of the m_misc.c versions so that the textscreen library does not need a dependency on the Doom code, and change all textscreen code to use these instead of unsafe functions. This fixes #372.
2014-03-28textscreen: Add label for PrintScreen key.Simon Howard
Needed to properly fix bug #369.
2014-03-27Define a keyboard scan code for PrintScreen.Simon Howard
There is no real scan code for the PrintScreen key under DOS, but it is convenient to be able to bind it as a screenshot key. Define a "fake" scancode (126) to represent PrintScreen so that it can be represented as a key binding in configuration files. Also add some comments/notes to the scantokey[] lookup table. This fixes #369.
2013-10-28Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2731
2013-10-28Use system DPI setting on Windows to determine whether to use the largeSimon Howard
font. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2730
2013-10-28Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2725
2013-10-28Determine which textscreen font to use by looking at the current desktopSimon Howard
screen resolution, not the largest fullscreen resolution offered by SDL. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2724
2013-08-11Remove Windows CE support.Simon Howard
What support exists is for obsolete devices I no longer possess; I've never been contacted about the port and it's been several years since I even bothered to build a new version. All the extra overrides are clutter that can just be removed. Subversion-branch: /branches/v2-branch Subversion-revision: 2615
2012-12-14Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2546
2012-11-18Add high-resolution font for textscreen.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2543
2012-10-28Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2537
2012-02-03Support Unicode input by mapping typed Unicode characters >= 128 up intoSimon Howard
a higher range to avoid conflicts with Doom's key constants. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2490
2011-10-23Merge from trunk.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2464
2011-10-23Fix numeric keypad when entering values in text boxes (thanks Twelve).Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2463
2011-10-13Fix crash when calling TXT_Shutdown twice.Simon Howard
Subversion-branch: /branches/v2-branch Subversion-revision: 2418
2011-06-13Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2347
2011-04-11Allow the shift key to be held down when changing key/mouse/joystickSimon Howard
bindings to prevent bindings to the same key from being cleared (thanks myk). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2325
2011-04-04Change the background color when hovering over widgets.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2320
2011-02-12Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 2258
2011-02-05Fix bug with libtextscreen where it was not possible to type a '+'Simon Howard
(thanks Alexandre Xavier). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2249
2010-12-10Merge from trunk. This is slightly out of date as I did the mergeSimon Howard
several days ago. Subversion-branch: /branches/raven-branch Subversion-revision: 2212
2010-12-05Allow textscreen font to be overridden using the TEXTSCREEN_FONT commandSimon Howard
line variable. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2195
2010-02-05Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1845
2009-12-12Fix textscreen black border bug.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1745
2009-11-21Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1737
2009-11-05Perform bounds checking on values passed to TXT_UpdateScreenArea() toSimon Howard
avoid crashes. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1728
2009-10-26Initial hacks for compiling under SDL 1.3.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1726
2009-09-30Change British English spellings to American English, for consistency.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1699
2009-09-20Use "const char" in libtextscreen where appropriate (thanks entryway).Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1679
2009-06-12Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1596
2009-06-11Grab the input in setup when reading a new key binding, so that WindowsSimon Howard
CE buttons are read properly. Map buttons to PC function keys. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1594
2009-06-09Merge from trunk.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1579
2009-06-07Catch errors when initialising SDL. Use the small textscreen font bySimon Howard
default on Windows CE if no fullscreen modes are available. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1570
2009-05-14Merge from trunk. Note that src/i_sdlsound.c has not yet been merged asSimon Howard
it contains too many conflicts at present. Subversion-branch: /branches/raven-branch Subversion-revision: 1522
2009-04-23Oops.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1502
2009-04-23Add small textscreen font for low resolution displays, based on theSimon Howard
Atari-Small font by Tom Fine. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1501
2008-12-02Use the hardware palette for textscreen and Hexen graphical startup.Simon Howard
Subversion-branch: /branches/raven-branch Subversion-revision: 1403
2008-02-28Add fixes for MSVC warnings (thanks entryway).Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1095
2007-10-18#define inline to _inline in MSVC.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 976
2007-07-29Allow more than the standard three mouse buttons to be defined throughSimon Howard
setup (hopefully) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 939
2007-07-08Make the numeric keypad behave like Vanilla does.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 935
2007-06-04Rename txt_main.c to txt_sdl.c; add txt_sdl.h for SDL-specific APISimon Howard
functions, while keeping txt_main.h for the common API. Add TXT_SDL_SetEventCallback to allow programs to intercept SDL events in the textscreen main loop. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 892