diff options
author | truelight <truelight@openttd.org> | 2007-06-12 20:24:12 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-12 20:24:12 +0000 |
commit | 0e53fd6d328a128799034e155a92cf44fddc1cd0 (patch) | |
tree | bed173ca279e1556489d31b0b8aa873a6d1cf110 /src/video/cocoa_v.mm | |
parent | b729f5d08da470a92f585e2758ceeba823014a93 (diff) | |
download | openttd-0e53fd6d328a128799034e155a92cf44fddc1cd0.tar.xz |
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
Diffstat (limited to 'src/video/cocoa_v.mm')
-rw-r--r-- | src/video/cocoa_v.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video/cocoa_v.mm b/src/video/cocoa_v.mm index b8193e902..7c563d281 100644 --- a/src/video/cocoa_v.mm +++ b/src/video/cocoa_v.mm @@ -69,6 +69,7 @@ extern "C" void HideMenuBar(); #include "../macros.h" #include "../os/macosx/splash.h" #include "../variables.h" +#include "../blitter/blitter.hpp" #include "cocoa_v.h" #include "cocoa_keys.h" @@ -950,6 +951,10 @@ static void QZ_SetPortAlphaOpaque() static void QZ_UpdateWindowPalette(uint start, uint count) { + /* We can only update the palette in 8bpp for now */ + /* TODO -- We need support for other bpps too! */ + if (BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() != 8) return; + uint i; switch (_cocoa_video_data.device_bpp) { |