~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work around a couple of minor display issues with max bridges set to 4:
[sgt/puzzles]
/
windows.c
diff --git
a/windows.c
b/windows.c
index
6b90023
..
f4cbfe4
100644
(file)
--- a/
windows.c
+++ b/
windows.c
@@
-121,7
+121,6
@@
struct frontend {
HPEN oldpen;
char *help_path;
int help_has_contents;
HPEN oldpen;
char *help_path;
int help_has_contents;
- char *laststatus;
enum { DRAWING, PRINTING, NOTHING } drawstatus;
DOCINFO di;
int printcount, printw, printh, printsolns, printcurr, printcolour;
enum { DRAWING, PRINTING, NOTHING } drawstatus;
DOCINFO di;
int printcount, printw, printh, printsolns, printcurr, printcolour;
@@
-180,16
+179,8
@@
void get_random_seed(void **randseed, int *randseedsize)
static void win_status_bar(void *handle, char *text)
{
frontend *fe = (frontend *)handle;
static void win_status_bar(void *handle, char *text)
{
frontend *fe = (frontend *)handle;
- char *rewritten;
- rewritten = midend_rewrite_statusbar(fe->me, text);
- if (!fe->laststatus || strcmp(rewritten, fe->laststatus)) {
- SetWindowText(fe->statusbar, rewritten);
- sfree(fe->laststatus);
- fe->laststatus = rewritten;
- } else {
- sfree(rewritten);
- }
+ SetWindowText(fe->statusbar, text);
}
static blitter *win_blitter_new(void *handle, int w, int h)
}
static blitter *win_blitter_new(void *handle, int w, int h)
@@
-913,7
+904,7
@@
void print(frontend *fe)
fe->drawstatus = PRINTING;
fe->hdc = pd.hDC;
fe->drawstatus = PRINTING;
fe->hdc = pd.hDC;
- fe->dr = drawing_
init(&win_drawing
, fe);
+ fe->dr = drawing_
new(&win_drawing, NULL
, fe);
document_print(doc, fe->dr);
drawing_free(fe->dr);
fe->dr = NULL;
document_print(doc, fe->dr);
drawing_free(fe->dr);
fe->dr = NULL;
@@
-1122,8
+1113,6
@@
static frontend *new_window(HINSTANCE inst, char *game_id, char **error)
fe->fonts = NULL;
fe->nfonts = fe->fontsize = 0;
fe->fonts = NULL;
fe->nfonts = fe->fontsize = 0;
- fe->laststatus = NULL;
-
{
int i, ncolours;
float *colours;
{
int i, ncolours;
float *colours;