Ozkan Sezer
082558db33
SDL_os2messagebox.c (_makeDlg): fix crash if title and/or message is NULL.
...
c.f.: bug #5253 .
2020-11-20 12:20:02 +03:00
Ozkan Sezer
bfc80d83c2
minor coding style cleanup
2020-10-25 03:55:02 +03:00
Ozkan Sezer
cfc1362011
os2 video: updates to my_gradd.h
2020-10-21 23:28:02 +03:00
Ozkan Sezer
c70191d2b7
SDL_os2video.c (OS2_CreateDevice): remove duplicated assignment.
2020-10-17 07:37:00 +03:00
Ozkan Sezer
77d0f043e5
os2video.c: add missing FOURCC_R666 define, enable FOURCC_R666 case in _getSDLPixelFormatData().
2020-10-16 23:50:00 +03:00
Ozkan Sezer
a90f0400a5
os2: a _lot_ of coding style cleanup, sot that they match the SDL style.
...
also renamed the 'debug' macro to debug_os2: the former was dangerously
a common name.
the binary (dll) output is precisely the same as before.
2020-10-15 21:37:30 +03:00
Ozkan Sezer
5807cb3d31
os2: remove dependency to gradd.h from IBM's ddk which is non-free:
...
Add a minimal my_gradd.h containing structures and constants only used
by SDL_os2vman.c -- based on public knowledge from around the internet
including pages from http://www.osfree.org and http://www.edm2.com .
2020-10-14 23:01:06 +03:00
Ozkan Sezer
1d9cf23e4c
os2: updated copyright dates for 2020. header guard fixes.
2020-10-14 23:01:05 +03:00
Ozkan Sezer
fe2cc8d86c
OS2_VideoQuit(): avoid double free()ing of displays.
...
Our caller SDL_VideoQuit() already frees display_modes, driverdata, etc.
Noticed in bitwiseworks' version at https://github.com/bitwiseworks/SDL2-os2
2020-10-14 23:01:04 +03:00
Ozkan Sezer
fba32ee21f
OS2_VideoInit: zero the stSDLDisplay and stSDLDisplayMode variables
...
Fixes testdisplayinfo.exe crashing in SDL2-2.0.13. (How it did work before?..)
2020-10-14 23:01:04 +03:00
Ozkan Sezer
54ced668c4
port from 2.0.12 to 2.0.13 / current SDL-hg repository.
...
- video: VideoBootStrap->available() is gone.
- thread: all important SDL_CreateThread internal data now put into
struct SDL_Thread: changes to SDL_SYS_CreateThread().
2020-10-14 23:01:04 +03:00
Ozkan Sezer
5da796fe52
os/2: port from SDL2-2.0.5 to SDL2-2.0.12
...
- events / video: SDL_SetDoubleClickTime() removed -- functionality
moved to SDL_mouse.c:SDL_MouseDoubleClickTimeChanged().
- video: struct SDL_VideoDevice-> CreateWindow and CreateWindowFrom
members renamed to CreateSDLWindow and CreateSDLWindowFrom
2020-10-14 23:01:03 +03:00
Ozkan Sezer
222f026899
os/2: port from SDL2-2.0.4 to SDL2-2.0.5:
...
changes to SDL_os2audio.c, SDL_os2video.c, os2/SDL_systhread.c in order
to accomodate SDL2-2.0.5 changes.
- audio: WaitDone() is gone, CloseDevice() interface changes.
- events / video: DropFile() changes:
SDL_DROPBEGIN and SDL_DROPCOMPLETE events, window IDs for drops.
- thread: struct SDL_Thread->stacksize
2020-10-14 23:01:03 +03:00
Ozkan Sezer
1b99d805db
os2: updates from Andrey Vasilkin's 2020-09-07 sources.
2020-10-14 23:01:02 +03:00
Ozkan Sezer
aa790837eb
os2: several warning fixes.
...
mostly those "W007: '&array' may not produce intended result" warnings
from Watcom, visible only in C++ mode. one or two others here & there.
2020-10-14 23:01:02 +03:00
Ozkan Sezer
110a0f7bb1
os2: update include paths. add missing libc includes to geniconv.
2020-10-14 23:01:01 +03:00
Ozkan Sezer
74cfb81dbb
os2: add port files for SDL2-2.0.4 from Andrey Vasilkin
...
only geniconv/iconv.h (was from LGPL libiconv) is replaced with a generic
minimal iconv.h based on public knowledge.
2020-10-14 23:01:00 +03:00