Permalink
Browse files

. 修正 bug (issues #116)

  • Loading branch information...
yaya
yaya committed Apr 26, 2016
1 parent f7797f6 commit 61d8229375c679436d56376518456723b2025e1a
Showing with 3 additions and 3 deletions.
  1. +2 −2 stage2/builtins.c
  2. +1 −1 stage2/graphics.c
View
@@ -4218,7 +4218,7 @@ splashimage_func(char *arg, int flags)
{
char tmp[16];
sprintf(tmp,"-1 %d %d",w,h);
if (graphicsmode_func(tmp,1))
if (graphicsmode_func(tmp,1) || graphics_mode < 0xFF)
return 1;
}
if (! animated_type && ! graphic_type )
@@ -14912,7 +14912,7 @@ graphicsmode_func (char *arg, int flags)
if (current_term->startup)
current_term->startup();
}
else
else if (graphics_mode > 0xFF)
{
current_term = term_table + 1; /* terminal graphics */
if (current_term->startup)
View
@@ -64,7 +64,7 @@ unsigned long line_spacing = 0;
unsigned long xpixels = 640;
unsigned long ypixels = 480;
unsigned long plano_size = 38400;
unsigned long graphics_mode = 0x12;
unsigned long graphics_mode = 3;
unsigned long current_x_resolution;
unsigned long current_y_resolution;
unsigned long current_bits_per_pixel;

0 comments on commit 61d8229

Please sign in to comment.