fix a conditional compilation error

This commit is contained in:
Vincent Wei
2020-02-29 22:33:22 +08:00
parent dfe6869108
commit 7d5a6dbd54
+3
View File
@@ -256,6 +256,9 @@ static GAL_Surface *DUMMY_SetVideoMode(_THIS, GAL_Surface *current,
free (this->hidden->buffer);
}
pitch = width * ((bpp + 7) / 8);
pitch = (pitch + 3) & ~3;
this->hidden->buffer = malloc (pitch * height);
if (!this->hidden->buffer) {
_ERR_PRINTF ("NEWGAL>DUMMY: "