BACKENDS: Adapt various backends code to set up Surface::format correctly.

Note that this change is not tested at all (not even compile wise!).
This commit is contained in:
Johannes Schickel 2011-04-17 21:14:19 +02:00
parent 3fd919060c
commit 877004dbdd
9 changed files with 19 additions and 9 deletions

View file

@ -36,7 +36,7 @@
namespace Common {
static void blit(Graphics::Surface *surf_dst, Graphics::Surface *surf_src, int16 x, int16 y, OverlayColor transparent) {
if (surf_dst->bytesPerPixel != sizeof(OverlayColor) || surf_src->bytesPerPixel != sizeof(OverlayColor))
if (surf_dst->format.bytesPerPixel != sizeof(OverlayColor) || surf_src->format.bytesPerPixel != sizeof(OverlayColor))
return;
const OverlayColor *src = (const OverlayColor *)surf_src->pixels;