mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 03:23:46 +08:00
fix a conditional compilation error
This commit is contained in:
@@ -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: "
|
||||
|
||||
Reference in New Issue
Block a user