12 #include "../stdafx.h"
13 #include "../zoom_func.h"
16 #include "../table/sprites.h"
18 #include "../safeguards.h"
32 for (
int y = 0; y < bp->
height; y++) {
34 dst_line += bp->
pitch;
39 for (
int x = 0; x < bp->
width; x++) {
92 for (
int i = 0; i != width; i++) {
96 udst = udst - width + _screen.pitch;
102 for (
int i = 0; i != width; i++) {
106 udst = udst - width + _screen.pitch;
111 DEBUG(misc, 0,
"32bpp blitter doesn't know how to draw this colour table ('%d')", pal);
117 Sprite *dest_sprite = (
Sprite *)allocator(
sizeof(*dest_sprite) + (size_t)sprite->
height * (
size_t)sprite->
width *
sizeof(*dst));
127 for (
int i = 0; i < sprite->
height * sprite->
width; i++) {
137 uint8 rgb_max =
max(src->r,
max(src->g, src->b));
140 if (rgb_max == 0) rgb_max = DEFAULT_BRIGHTNESS;