more clever direct
This commit is contained in:
parent
766f3d9dcd
commit
8f112c09fa
|
@ -1524,7 +1524,7 @@ int game_pict_modify(img_t p)
|
||||||
{
|
{
|
||||||
static int modify = 0;
|
static int modify = 0;
|
||||||
int last = modify;
|
int last = modify;
|
||||||
if (p && (el_img(el_spic) == p))
|
if (p && ((el_img(el_spic) == p) || p == gfx_screen(NULL)))
|
||||||
modify = 1;
|
modify = 1;
|
||||||
else
|
else
|
||||||
modify = 0;
|
modify = 0;
|
||||||
|
@ -1609,7 +1609,9 @@ int game_cmd(char *cmd)
|
||||||
if (game_theme.gfx_mode == GFX_MODE_DIRECT) {
|
if (game_theme.gfx_mode == GFX_MODE_DIRECT) {
|
||||||
if (cmdstr)
|
if (cmdstr)
|
||||||
free(cmdstr);
|
free(cmdstr);
|
||||||
goto out;
|
if (game_pict_modify(NULL))
|
||||||
|
goto out;
|
||||||
|
return 0;
|
||||||
} else if (dd) { /* disable direct mode on the fly */
|
} else if (dd) { /* disable direct mode on the fly */
|
||||||
game_theme_changed = 2; /* force redraw */
|
game_theme_changed = 2; /* force redraw */
|
||||||
game_cursor(CURSOR_DRAW);
|
game_cursor(CURSOR_DRAW);
|
||||||
|
|
Loading…
Reference in a new issue