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:
kichikuou
2021-12-03 10:57:09 +09:00
parent 38a40e82f3
commit b6cdba145f
+4 -2
View File
@@ -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 */