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:
parent
3fd919060c
commit
877004dbdd
9 changed files with 19 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue