Fixed hang when opening status window.

This commit is contained in:
TomW 2014-07-11 20:52:18 +01:00
commit 4cdb0d9d82
2 changed files with 2 additions and 2 deletions

View file

@ -1367,12 +1367,11 @@ int svga_add_status_info(char *s, int max_len, void *p)
svga_t *svga = (svga_t *)p;
char temps[128];
int cur_len = max_len;
int len;
if (svga->chain4) strcpy(temps, "SVGA chained (possibly mode 13h)\n");
else strcpy(temps, "SVGA unchained (possibly mode-X)\n");
strncat(s, temps, cur_len);
cur_len -= len;
cur_len -= strlen(temps);
if (!svga->video_bpp) strcpy(temps, "SVGA in text mode\n");
else sprintf(temps, "SVGA colour depth : %i bpp\n", svga->video_bpp);

View file

@ -4,6 +4,7 @@
#undef BITMAP
#include "ibm.h"
#include "device.h"
#include "video.h"
#include "resources.h"
#include "win.h"