Changed to default masks to fix color bug
This commit is contained in:
parent
68fe26613a
commit
81278f0186
@ -13,19 +13,7 @@
|
||||
using namespace sc::gui;
|
||||
|
||||
Image::Image(int w, int h) {
|
||||
Uint32 rmask, gmask, bmask, amask;
|
||||
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
|
||||
rmask = 0xff000000;
|
||||
gmask = 0x00ff0000;
|
||||
bmask = 0x0000ff00;
|
||||
amask = 0x000000ff;
|
||||
#else
|
||||
rmask = 0x000000ff;
|
||||
gmask = 0x0000ff00;
|
||||
bmask = 0x00ff0000;
|
||||
amask = 0xff000000;
|
||||
#endif
|
||||
SDL_Surface* s {SDL_CreateRGBSurface(0, w, h, 32, rmask, gmask, bmask, amask)};
|
||||
SDL_Surface* s {SDL_CreateRGBSurface(0, w, h, 32, 0, 0, 0, 0)};
|
||||
_s.reset(s);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user