Commit Graph

71 Commits

Author SHA1 Message Date
Glenn Maynard db4d27d39b fix blitting regression, causing lines on the border of cdtitles 2004-05-21 20:02:15 +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 b815ef272d add assert 2004-05-18 18:49:49 +00:00
Glenn Maynard ae4cb0197c license update 2004-05-18 07:11:11 +00:00
Glenn Maynard 97b4984c5a whoops, fix 2004-05-18 07:01:48 +00:00
Glenn Maynard d2268fdf1e SDL_image is no longer used 2004-05-18 06:34:20 +00:00
Glenn Maynard b59e1cce88 const fix, assertion fix 2004-05-18 03:15:51 +00:00
Glenn Maynard 4dd6c11c72 don't template the blitter; it confuses vc6 2004-05-17 04:53:08 +00:00
Glenn Maynard a33e65a552 cleanup 2004-05-17 02:38:01 +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 fa83dfc552 fix excessive rounding error in mySDL_BlitTransform (completely opaque
surfaces would be set to an alpha value of 0xFB); fix latent alpha channel
bug
2004-05-02 03:49:22 +00:00
Glenn Maynard 82595ecfe1 fix minor memleaks: a few bytes per screenshot, and a harmless "leak"
if IMG_LoadTyped_RW fails
2004-05-02 02:15:01 +00:00
Glenn Maynard 11843f12be add mySDL_GetError 2004-04-09 21:52:50 +00:00
Glenn Maynard 99a3eeb659 add assert 2004-04-05 22:33:49 +00:00
Glenn Maynard b6e2805cd5 cleanup 2004-03-19 23:14:30 +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 ae5f6e267e fix uninintialized values 2004-01-21 05:48:07 +00:00
Glenn Maynard d5db243378 fix writing uninitialized data to banner cache (harmless) 2004-01-21 03:49:35 +00:00
Glenn Maynard 11e7899226 fix minor memleaks 2004-01-21 03:09:59 +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 910419a14e better error reporting 2003-12-10 05:01:51 +00:00
Glenn Maynard a274e5c95c use SDL_LoadImage in mySDL_SaveSurface, mySDL_LoadSurface 2003-12-04 21:17:51 +00:00
Glenn Maynard 51a4968659 use SDL_LoadImage in SDL_LoadImage 2003-12-04 21:11:29 +00:00
Glenn Maynard abab6c0c9f add SDL_LoadImage 2003-12-04 20:41:00 +00:00
Glenn Maynard 1d4ea12d96 Fix banner cache loading. 2003-11-12 04:39:49 +00:00
Glenn Maynard e99b2f5965 fix memleaks 2003-11-11 23:19:40 +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 5c030e3011 SDL-1.2.6 2003-09-29 23:17:03 +00:00
Glenn Maynard 0b80036bd8 remove unused code 2003-09-03 08:44:01 +00:00
Chris Danford 35950c4eaf Add prefs for logging. Don't throw if can't open log file. Remove Ragefopen and Rageifstream (they aren't needed). 2003-08-13 04:40:23 +00:00
Chris Danford 278cb4c3f1 runs on Xbox 2003-07-22 07:47:27 +00:00
Glenn Maynard a0bc9ef4f5 hush warning 2003-07-06 20:32:08 +00:00
Glenn Maynard 4df0a19973 fix compile problem 2003-06-29 22:44:30 +00:00
Glenn Maynard 5f5876af46 what is #defining "or" to "||"? 2003-06-29 22:43:41 +00:00
Glenn Maynard 9bcb468aa0 Sick of wrestling with the SDL blitters. 2003-06-29 07:03:00 +00:00
Glenn Maynard 06207a0171 Clean up endianness mess. 2003-06-28 01:45:44 +00:00
Steve Checkoway 8611441184 Don't change the application icon in OS X. 2003-06-25 02:31:33 +00:00
Chris Danford a3e4ebca3f fix incorrect window title and lost alpha in window icon 2003-06-16 20:54:10 +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 09cf46a91e fix wrong assert 2003-06-04 22:07:38 +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 982dc7551e add error detection 2003-05-30 21:14:24 +00:00
Chris Danford 2a85a2b9df Fix crash alt+tabbing in and out of fullscreen on Voodoo3+D3D+WinXP. 2003-05-30 00:30:40 +00:00
Glenn Maynard 35405bc34c remove log 2003-05-26 01:51:59 +00:00