author | glx |
Mon, 26 May 2008 17:40:33 +0000 | |
branch | noai |
changeset 10718 | 7e9d9e40e16f |
parent 10455 | 22c441f5adf9 |
child 11044 | 097ea3e7ec56 |
permissions | -rw-r--r-- |
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9703
diff
changeset
|
1 |
/* $Id$ */ |
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9703
diff
changeset
|
2 |
|
10455
22c441f5adf9
(svn r12997) [NoAI] -Sync: with trunk r12895:12996.
rubidium
parents:
9724
diff
changeset
|
3 |
/** @file 32bpp_anim.cpp Implementation of the optimized 32 bpp blitter with animation support. */ |
22c441f5adf9
(svn r12997) [NoAI] -Sync: with trunk r12895:12996.
rubidium
parents:
9724
diff
changeset
|
4 |
|
9629 | 5 |
#include "../stdafx.h" |
9723
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9703
diff
changeset
|
6 |
#include "../core/alloc_func.hpp" |
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9703
diff
changeset
|
7 |
#include "../gfx_func.h" |
eee46cb39750
(svn r11796) [NoAI] -Sync: with trunk r11502:11795.
rubidium
parents:
9703
diff
changeset
|
8 |
#include "../zoom_func.h" |
9629 | 9 |
#include "../debug.h" |
9631
8a2d1c2ceb88
(svn r10461) [NoAI] -Sync with trunk r10349:r10460.
rubidium
parents:
9629
diff
changeset
|
10 |
#include "../video/video_driver.hpp" |
9629 | 11 |
#include "32bpp_anim.hpp" |
12 |
||
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
13 |
#include "../table/sprites.h" |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
14 |
|
9629 | 15 |
static FBlitter_32bppAnim iFBlitter_32bppAnim; |
16 |
||
17 |
void Blitter_32bppAnim::Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom) |
|
18 |
{ |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
19 |
if (_screen_disable_anim) { |
9703
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
20 |
/* This means our output is not to the screen, so we can't be doing any animation stuff, so use our parent Draw() */ |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
21 |
Blitter_32bppOptimized::Draw(bp, mode, zoom); |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
22 |
return; |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
23 |
} |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
24 |
|
9629 | 25 |
const SpriteLoader::CommonPixel *src, *src_line; |
26 |
uint32 *dst, *dst_line; |
|
27 |
uint8 *anim, *anim_line; |
|
28 |
||
29 |
if (_screen.width != this->anim_buf_width || _screen.height != this->anim_buf_height) { |
|
30 |
/* The size of the screen changed; we can assume we can wipe all data from our buffer */ |
|
31 |
free(this->anim_buf); |
|
32 |
this->anim_buf = CallocT<uint8>(_screen.width * _screen.height); |
|
33 |
this->anim_buf_width = _screen.width; |
|
34 |
this->anim_buf_height = _screen.height; |
|
35 |
} |
|
36 |
||
37 |
/* Find where to start reading in the source sprite */ |
|
38 |
src_line = (const SpriteLoader::CommonPixel *)bp->sprite + (bp->skip_top * bp->sprite_width + bp->skip_left) * ScaleByZoom(1, zoom); |
|
39 |
dst_line = (uint32 *)bp->dst + bp->top * bp->pitch + bp->left; |
|
40 |
anim_line = this->anim_buf + ((uint32 *)bp->dst - (uint32 *)_screen.dst_ptr) + bp->top * this->anim_buf_width + bp->left; |
|
41 |
||
42 |
for (int y = 0; y < bp->height; y++) { |
|
43 |
dst = dst_line; |
|
44 |
dst_line += bp->pitch; |
|
45 |
||
46 |
src = src_line; |
|
47 |
src_line += bp->sprite_width * ScaleByZoom(1, zoom); |
|
48 |
||
49 |
anim = anim_line; |
|
50 |
anim_line += this->anim_buf_width; |
|
51 |
||
52 |
for (int x = 0; x < bp->width; x++) { |
|
9703
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
53 |
if (src->a == 0) { |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
54 |
/* src->r is 'misused' here to indicate how much more pixels are following with an alpha of 0 */ |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
55 |
int skip = UnScaleByZoom(src->r, zoom); |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
56 |
|
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
57 |
dst += skip; |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
58 |
anim += skip; |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
59 |
x += skip - 1; |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
60 |
src += ScaleByZoom(1, zoom) * skip; |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
61 |
continue; |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
62 |
} |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
63 |
|
9629 | 64 |
switch (mode) { |
65 |
case BM_COLOUR_REMAP: |
|
66 |
/* In case the m-channel is zero, do not remap this pixel in any way */ |
|
67 |
if (src->m == 0) { |
|
9703
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
68 |
*dst = ComposeColourRGBA(src->r, src->g, src->b, src->a, *dst); |
9629 | 69 |
*anim = 0; |
70 |
} else { |
|
71 |
if (bp->remap[src->m] != 0) { |
|
72 |
*dst = ComposeColourPA(this->LookupColourInPalette(bp->remap[src->m]), src->a, *dst); |
|
73 |
*anim = bp->remap[src->m]; |
|
74 |
} |
|
75 |
} |
|
76 |
break; |
|
77 |
||
78 |
case BM_TRANSPARENT: |
|
79 |
/* TODO -- We make an assumption here that the remap in fact is transparency, not some color. |
|
80 |
* This is never a problem with the code we produce, but newgrfs can make it fail... or at least: |
|
81 |
* we produce a result the newgrf maker didn't expect ;) */ |
|
82 |
||
83 |
/* Make the current color a bit more black, so it looks like this image is transparent */ |
|
9703
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
84 |
*dst = MakeTransparent(*dst, 192); |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
85 |
*anim = bp->remap[*anim]; |
9629 | 86 |
break; |
87 |
||
88 |
default: |
|
9703
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
89 |
/* Above 217 is palette animation */ |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
90 |
if (src->m >= 217) *dst = ComposeColourPA(this->LookupColourInPalette(src->m), src->a, *dst); |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
91 |
else *dst = ComposeColourRGBA(src->r, src->g, src->b, src->a, *dst); |
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
92 |
*anim = src->m; |
9629 | 93 |
break; |
94 |
} |
|
95 |
dst++; |
|
96 |
anim++; |
|
97 |
src += ScaleByZoom(1, zoom); |
|
98 |
} |
|
99 |
} |
|
100 |
} |
|
101 |
||
102 |
void Blitter_32bppAnim::DrawColorMappingRect(void *dst, int width, int height, int pal) |
|
103 |
{ |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
104 |
if (_screen_disable_anim) { |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
105 |
/* This means our output is not to the screen, so we can't be doing any animation stuff, so use our parent DrawColorMappingRect() */ |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
106 |
Blitter_32bppOptimized::DrawColorMappingRect(dst, width, height, pal); |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
107 |
return; |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
108 |
} |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
109 |
|
9629 | 110 |
uint32 *udst = (uint32 *)dst; |
111 |
uint8 *anim; |
|
112 |
||
113 |
anim = this->anim_buf + ((uint32 *)dst - (uint32 *)_screen.dst_ptr); |
|
114 |
||
115 |
if (pal == PALETTE_TO_TRANSPARENT) { |
|
116 |
do { |
|
117 |
for (int i = 0; i != width; i++) { |
|
9703
d2a6acdbd665
(svn r11146) [NoAI] -Sync: with trunk r11035:11045.
rubidium
parents:
9631
diff
changeset
|
118 |
*udst = MakeTransparent(*udst, 154); |
9629 | 119 |
*anim = 0; |
120 |
udst++; |
|
121 |
anim++; |
|
122 |
} |
|
123 |
udst = udst - width + _screen.pitch; |
|
124 |
anim = anim - width + this->anim_buf_width; |
|
125 |
} while (--height); |
|
126 |
return; |
|
127 |
} |
|
128 |
if (pal == PALETTE_TO_STRUCT_GREY) { |
|
129 |
do { |
|
130 |
for (int i = 0; i != width; i++) { |
|
131 |
*udst = MakeGrey(*udst); |
|
132 |
*anim = 0; |
|
133 |
udst++; |
|
134 |
anim++; |
|
135 |
} |
|
136 |
udst = udst - width + _screen.pitch; |
|
137 |
anim = anim - width + this->anim_buf_width; |
|
138 |
} while (--height); |
|
139 |
return; |
|
140 |
} |
|
141 |
||
142 |
DEBUG(misc, 0, "32bpp blitter doesn't know how to draw this color table ('%d')", pal); |
|
143 |
} |
|
144 |
||
145 |
void Blitter_32bppAnim::SetPixel(void *video, int x, int y, uint8 color) |
|
146 |
{ |
|
147 |
*((uint32 *)video + x + y * _screen.pitch) = LookupColourInPalette(color); |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
148 |
|
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
149 |
/* Set the color in the anim-buffer too, if we are rendering to the screen */ |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
150 |
if (_screen_disable_anim) return; |
9629 | 151 |
this->anim_buf[((uint32 *)video - (uint32 *)_screen.dst_ptr) + x + y * this->anim_buf_width] = color; |
152 |
} |
|
153 |
||
154 |
void Blitter_32bppAnim::SetPixelIfEmpty(void *video, int x, int y, uint8 color) |
|
155 |
{ |
|
156 |
uint32 *dst = (uint32 *)video + x + y * _screen.pitch; |
|
157 |
if (*dst == 0) { |
|
158 |
*dst = LookupColourInPalette(color); |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
159 |
/* Set the color in the anim-buffer too, if we are rendering to the screen */ |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
160 |
if (_screen_disable_anim) return; |
9629 | 161 |
this->anim_buf[((uint32 *)video - (uint32 *)_screen.dst_ptr) + x + y * this->anim_buf_width] = color; |
162 |
} |
|
163 |
} |
|
164 |
||
165 |
void Blitter_32bppAnim::DrawRect(void *video, int width, int height, uint8 color) |
|
166 |
{ |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
167 |
if (_screen_disable_anim) { |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
168 |
/* This means our output is not to the screen, so we can't be doing any animation stuff, so use our parent DrawRect() */ |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
169 |
Blitter_32bppOptimized::DrawRect(video, width, height, color); |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
170 |
return; |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
171 |
} |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
172 |
|
9629 | 173 |
uint32 color32 = LookupColourInPalette(color); |
174 |
uint8 *anim_line; |
|
175 |
||
176 |
anim_line = ((uint32 *)video - (uint32 *)_screen.dst_ptr) + this->anim_buf; |
|
177 |
||
178 |
do { |
|
179 |
uint32 *dst = (uint32 *)video; |
|
180 |
uint8 *anim = anim_line; |
|
181 |
||
182 |
for (int i = width; i > 0; i--) { |
|
183 |
*dst = color32; |
|
184 |
/* Set the color in the anim-buffer too */ |
|
185 |
*anim = color; |
|
186 |
dst++; |
|
187 |
anim++; |
|
188 |
} |
|
189 |
video = (uint32 *)video + _screen.pitch; |
|
190 |
anim_line += this->anim_buf_width; |
|
191 |
} while (--height); |
|
192 |
} |
|
193 |
||
194 |
void Blitter_32bppAnim::CopyFromBuffer(void *video, const void *src, int width, int height) |
|
195 |
{ |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
196 |
assert(!_screen_disable_anim); |
9629 | 197 |
assert(video >= _screen.dst_ptr && video <= (uint32 *)_screen.dst_ptr + _screen.width + _screen.height * _screen.pitch); |
198 |
uint32 *dst = (uint32 *)video; |
|
199 |
uint32 *usrc = (uint32 *)src; |
|
200 |
uint8 *anim_line; |
|
201 |
||
202 |
anim_line = ((uint32 *)video - (uint32 *)_screen.dst_ptr) + this->anim_buf; |
|
203 |
||
204 |
for (; height > 0; height--) { |
|
205 |
memcpy(dst, usrc, width * sizeof(uint32)); |
|
206 |
usrc += width; |
|
207 |
dst += _screen.pitch; |
|
208 |
/* Copy back the anim-buffer */ |
|
209 |
memcpy(anim_line, usrc, width * sizeof(uint8)); |
|
210 |
usrc = (uint32 *)((uint8 *)usrc + width); |
|
211 |
anim_line += this->anim_buf_width; |
|
212 |
} |
|
213 |
||
214 |
/* We update the palette (or the pixels that do animation) immediatly, to avoid graphical glitches */ |
|
215 |
this->PaletteAnimate(217, _use_dos_palette ? 38 : 28); |
|
216 |
} |
|
217 |
||
218 |
void Blitter_32bppAnim::CopyToBuffer(const void *video, void *dst, int width, int height) |
|
219 |
{ |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
220 |
assert(!_screen_disable_anim); |
9629 | 221 |
assert(video >= _screen.dst_ptr && video <= (uint32 *)_screen.dst_ptr + _screen.width + _screen.height * _screen.pitch); |
222 |
uint32 *udst = (uint32 *)dst; |
|
223 |
uint32 *src = (uint32 *)video; |
|
224 |
uint8 *anim_line; |
|
225 |
||
226 |
if (this->anim_buf == NULL) return; |
|
227 |
||
228 |
anim_line = ((uint32 *)video - (uint32 *)_screen.dst_ptr) + this->anim_buf; |
|
229 |
||
230 |
for (; height > 0; height--) { |
|
231 |
memcpy(udst, src, width * sizeof(uint32)); |
|
232 |
src += _screen.pitch; |
|
233 |
udst += width; |
|
234 |
/* Copy the anim-buffer */ |
|
235 |
memcpy(udst, anim_line, width * sizeof(uint8)); |
|
236 |
udst = (uint32 *)((uint8 *)udst + width); |
|
237 |
anim_line += this->anim_buf_width; |
|
238 |
} |
|
239 |
} |
|
240 |
||
241 |
void Blitter_32bppAnim::ScrollBuffer(void *video, int &left, int &top, int &width, int &height, int scroll_x, int scroll_y) |
|
242 |
{ |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
243 |
assert(!_screen_disable_anim); |
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
244 |
assert(video >= _screen.dst_ptr && video <= (uint32 *)_screen.dst_ptr + _screen.width + _screen.height * _screen.pitch); |
9629 | 245 |
uint8 *dst, *src; |
246 |
||
247 |
/* We need to scroll the anim-buffer too */ |
|
248 |
if (scroll_y > 0) { |
|
249 |
dst = this->anim_buf + left + (top + height - 1) * this->anim_buf_width; |
|
250 |
src = dst - scroll_y * this->anim_buf_width; |
|
251 |
||
252 |
/* Adjust left & width */ |
|
253 |
if (scroll_x >= 0) dst += scroll_x; |
|
254 |
else src -= scroll_x; |
|
255 |
||
256 |
uint tw = width + (scroll_x >= 0 ? -scroll_x : scroll_x); |
|
257 |
uint th = height - scroll_y; |
|
258 |
for (; th > 0; th--) { |
|
259 |
memcpy(dst, src, tw * sizeof(uint8)); |
|
260 |
src -= this->anim_buf_width; |
|
261 |
dst -= this->anim_buf_width; |
|
262 |
} |
|
263 |
} else { |
|
264 |
/* Calculate pointers */ |
|
265 |
dst = this->anim_buf + left + top * this->anim_buf_width; |
|
266 |
src = dst - scroll_y * this->anim_buf_width; |
|
267 |
||
268 |
/* Adjust left & width */ |
|
269 |
if (scroll_x >= 0) dst += scroll_x; |
|
270 |
else src -= scroll_x; |
|
271 |
||
272 |
/* the y-displacement may be 0 therefore we have to use memmove, |
|
273 |
* because source and destination may overlap */ |
|
274 |
uint tw = width + (scroll_x >= 0 ? -scroll_x : scroll_x); |
|
275 |
uint th = height + scroll_y; |
|
276 |
for (; th > 0; th--) { |
|
277 |
memmove(dst, src, tw * sizeof(uint8)); |
|
278 |
src += this->anim_buf_width; |
|
279 |
dst += this->anim_buf_width; |
|
280 |
} |
|
281 |
} |
|
282 |
||
283 |
Blitter_32bppBase::ScrollBuffer(video, left, top, width, height, scroll_x, scroll_y); |
|
284 |
} |
|
285 |
||
286 |
int Blitter_32bppAnim::BufferSize(int width, int height) |
|
287 |
{ |
|
288 |
return width * height * (sizeof(uint32) + sizeof(uint8)); |
|
289 |
} |
|
290 |
||
291 |
void Blitter_32bppAnim::PaletteAnimate(uint start, uint count) |
|
292 |
{ |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
293 |
assert(!_screen_disable_anim); |
9629 | 294 |
uint8 *anim = this->anim_buf; |
295 |
||
296 |
/* Never repaint the transparency pixel */ |
|
297 |
if (start == 0) start++; |
|
298 |
||
299 |
/* Let's walk the anim buffer and try to find the pixels */ |
|
300 |
for (int y = 0; y < this->anim_buf_height; y++) { |
|
301 |
for (int x = 0; x < this->anim_buf_width; x++) { |
|
302 |
if (*anim >= start && *anim <= start + count) { |
|
303 |
/* Update this pixel */ |
|
304 |
this->SetPixel(_screen.dst_ptr, x, y, *anim); |
|
305 |
} |
|
306 |
anim++; |
|
307 |
} |
|
308 |
} |
|
309 |
||
310 |
/* Make sure the backend redraws the whole screen */ |
|
9631
8a2d1c2ceb88
(svn r10461) [NoAI] -Sync with trunk r10349:r10460.
rubidium
parents:
9629
diff
changeset
|
311 |
_video_driver->MakeDirty(0, 0, _screen.width, _screen.height); |
9629 | 312 |
} |
313 |
||
314 |
Blitter::PaletteAnimation Blitter_32bppAnim::UsePaletteAnimation() |
|
315 |
{ |
|
316 |
return Blitter::PALETTE_ANIMATION_BLITTER; |
|
317 |
} |