Permalink
Browse files

. 修正非 vbe 模式加载图像死机。

  • Loading branch information...
yaya
yaya committed Dec 17, 2017
1 parent 6fabc09 commit 331c5a122a5d9a340fec99b540dd56f672728bb9
Showing with 7 additions and 2 deletions.
  1. +7 −2 stage2/builtins.c
View
@@ -4246,13 +4246,18 @@ splashimage_func(char *arg, int flags)
}
strcpy(splashimage, arg);
if (type == 0x4D42 && (!graphics_inited || graphics_mode < 0xFF)) //BMP
if (graphics_mode < 0xFF)
{
if (type == 0x4D42 && !graphics_inited) //BMP
{
char tmp[16];
sprintf(tmp,"-1 %d %d",w,h);
if (graphicsmode_func(tmp,1) || graphics_mode < 0xFF)
if (graphicsmode_func(tmp,1))
return 1;
}
else
return 0;
}
if (! animated_type && ! graphic_type )
graphics_end();
fill:

0 comments on commit 331c5a1

Please sign in to comment.