mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-22 22:48:08 +03:00
ags: Initialize alpha plane with 255 (opaque)
This fixes an issue in Ouji-sama Lv1 where the background of the map was not drawn.
This commit is contained in:
@@ -137,8 +137,10 @@ void ags_setWorldSize(int width, int height, int depth) {
|
||||
nact->ags.dib = sdl_getDIB();
|
||||
|
||||
/* DIBが8以上の場合は、alpha plane を用意 */
|
||||
if (depth > 8)
|
||||
nact->ags.dib->alpha = calloc(width * height, sizeof(BYTE));
|
||||
if (depth > 8) {
|
||||
nact->ags.dib->alpha = malloc(width * height);
|
||||
memset(nact->ags.dib->alpha, 255, width * height);
|
||||
}
|
||||
|
||||
fade_outed = FALSE; /* thanx tajiri@wizard */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user