diff options
author | matthijs <matthijs@openttd.org> | 2013-02-14 11:06:12 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2013-02-14 11:06:12 +0000 |
commit | 328ed1cf94a5a18fad75ae7057202b5c05138765 (patch) | |
tree | a5c8d78bae456bd8681f6f8f54e85febf7c236b9 /src/ini_load.cpp | |
parent | afcb4a25b22abb229dd302339fbf7b603c0e1deb (diff) | |
download | openttd-328ed1cf94a5a18fad75ae7057202b5c05138765.tar.xz |
(svn r24993) -Fix: [SDL] Improve 8bpp hardware palette support. Instead of always requesting SDL_HWPALETTE, it is now only done for 8bp blitters in fullscreen mode.
- This fixes 32bpp blitters on 8bpp X11, which would only render garbage with SDL_HWPALETTE.
- This prevents the colors of other applications from being messed up when running a 8bpp blitter on a 8bpp system.
- When running a 8bpp blitter on an 8bpp system without SDL_HWPALETTE (e.g., in windowed mode), this uses a new shadow surface with color approximation.
- The use of a hardware palette can be forced on and off using -v sdl:hw_palette=1 or -v sdl:hw_palette=0
Diffstat (limited to 'src/ini_load.cpp')
0 files changed, 0 insertions, 0 deletions