Commit Graph
43 Commits
Author SHA1 Message Date
Glenn Maynard e534493c42 split out SetupSDL 2004-06-14 05:18:09 +00:00
Glenn Maynard 58cf9f21c5 HandleSDLEvents is too small to be worth splitting
handle hwnd changes within the renderers, since it's tied to the window
2004-06-14 03:54:46 +00:00
Glenn Maynard b1d49657ab UpdateHWnd -> SDL_UpdateHWnd in utils 2004-06-14 03:32:32 +00:00
Glenn Maynard 47a277ce2b move HandleSDLEvents to SDL_utils; the renderer is now responsible
for calling this
2004-06-14 03:11:39 +00:00
Glenn Maynard b481fc465b excessively large commit: use RageSurface 2004-06-14 00:51:00 +00:00
Glenn Maynard ec7a148b82 remove mySDL_Swap24 2004-06-13 07:11:49 +00:00
Glenn Maynard 2f8e09ce7d simplify OpenRWops 2004-05-18 19:25:53 +00:00
Glenn Maynard abcbddcaa3 simplify OpenRWops, fix error handling 2004-05-18 19:19:27 +00:00
Glenn Maynard ae4cb0197c license update 2004-05-18 07:11:11 +00:00
Glenn Maynard b59e1cce88 const fix, assertion fix 2004-05-18 03:15:51 +00:00
Glenn Maynard a33e65a552 cleanup 2004-05-17 02:38:01 +00:00
Glenn Maynard bf8b43ab92 oops; save before commit 2004-05-17 01:49:37 +00:00
Glenn Maynard d92317f7cd Stop using SDL_SRCCOLORKEY entirely. Use alpha palettes instead; they're
much simpler, more flexible and aren't a special case.
add ApplyHotPinkColorKey
2004-05-17 01:47:20 +00:00
Glenn Maynard 04a74a4455 begin work on arbitrary alpha values in paletted textures 2004-05-16 05:51:25 +00:00
Glenn Maynard 6398054e26 Remove 4-bit palette support. As far as I can tell, no hardware supports
it.  (New ATI hardware apparently doesn't even support 8-bit palettes?!)
2004-05-15 08:18:37 +00:00
Glenn Maynard 11843f12be add mySDL_GetError 2004-04-09 21:52:50 +00:00
Glenn Maynard 10015303e9 maybe fix Mac screenshot endianness problem 2004-03-08 07:28:07 +00:00
Glenn Maynard c548f045c0 add ConvertSDLSurface( src, dst )
split out CopySDLSurface(), CompareSDLFormats()
restore alpha flags when done converting
2004-02-25 03:36:20 +00:00
Glenn Maynard 3e8ff0b7ad create mySDL_MakeDummySurface 2004-02-20 05:10:39 +00:00
Glenn Maynard 0a2d283a4e SDL_RWops *OpenRWops( const CString &sPath, bool Write=false );
SDL_RWops *OpenRWops( CString &sBuf );
2003-12-12 10:03:23 +00:00
Glenn Maynard abab6c0c9f add SDL_LoadImage 2003-12-04 20:41:00 +00:00
Glenn Maynard 2854c68a18 Remember if a surface fits in 4 bits. 2003-10-08 03:37:33 +00:00
Glenn Maynard 2c816714bb add mySDL_Palettize 2003-10-08 01:46:00 +00:00
Glenn Maynard 0b80036bd8 remove unused code 2003-09-03 08:44:01 +00:00
Glenn Maynard 9bcb468aa0 Sick of wrestling with the SDL blitters. 2003-06-29 07:03:00 +00:00
Glenn Maynard 3a9205e1d2 move prototype 2003-06-28 02:03:26 +00:00
Chris Danford 429d311c2a Remove composited text. The large amount of memory it uses is a bigger penalty than drawing a quad for each glyph. 2003-06-05 22:18:42 +00:00
Chris Danford 428d560a6b Clean up resolution fallback logic
Add video settings for G400
Working on composited text
2003-06-05 19:29:27 +00:00
Glenn Maynard 1dc380ee5c When converting SDL surfaces, only copy the palette if both the source
and dest is paletted.

Add: mySDL_SaveSurface, mySDL_LoadSurface, mySDL_MapRGBExact
(like SDL_MapRGB but does no nearest-match) and mySDL_BlitTransform.
2003-06-04 20:08:51 +00:00
Glenn Maynard 2dc0c96c8d add mySDL_GetAllEvents and mySDL_PushEvents 2003-05-26 01:43:23 +00:00
Glenn Maynard 96f86ed5e2 Add mySDL_EventState to work around bizarre SDL event behavior 2003-05-25 23:49:40 +00:00
Chris Danford bb089f467e consolidate SDL icon changing code 2003-05-25 21:58:34 +00:00
Glenn Maynard 60921db8e5 Stop using basic_string for Sint32. We only use it in one place and it's
a bit of a performance hit there ...
2003-04-25 19:40:49 +00:00
Glenn Maynard 3046f71c66 add SDL_GetEvent 2003-04-12 19:00:56 +00:00
Chris Danford 0bb7164b91 worked on Error diffusion dithering algorithm, but it doesn't end up looking much better than OrderedDither 2003-04-05 21:17:51 +00:00
Glenn Maynard 609531c1a7 Automatically figure out if we can use 0alpha or 1alpha. I'll remove the
old code once the new code is stable.
2003-03-27 06:01:43 +00:00
Glenn Maynard 0d5cd0bc0f apparently it does want to be this way 2003-02-14 23:03:14 +00:00
Glenn Maynard dd06dddc75 use Sint32 char_traits correctly 2003-02-14 22:52:38 +00:00
Glenn Maynard 5940c3a148 add a char_traits for Sint32 2003-02-14 22:49:51 +00:00
Glenn Maynard e83979439f pull in SDL headers in one place, handle X silliness 2003-02-14 06:29:40 +00:00
Glenn Maynard 7344ddf371 add a hack to fix annoying borders 2003-01-23 05:35:21 +00:00
Glenn Maynard f44f8d818c rudimentary paletted texture support and some other optimizations 2003-01-23 04:45:45 +00:00
Glenn Maynard 3f2648011f Some SDL source files: dithering routine, zoom routine and
misc. tools.
2002-10-24 03:38:23 +00:00