now you can change cursors from direct mode

This commit is contained in:
p.kosyh 2011-06-18 14:49:18 +00:00
parent 3f998785f2
commit 31a065597a
2 changed files with 11 additions and 0 deletions

1
debian/changelog vendored
View file

@ -4,6 +4,7 @@ instead (1.4.3) unstable; urgency=low
* ukranian translation and tutorial;
* multilang tutorial3;
* sprites small fix (predefined handles);
* cursor changing from direct mode support;
-- Peter Kosyh <p.kosyh@gmail.com> Thu, 15 Jun 2011 16:56:00 +0400

View file

@ -1764,6 +1764,16 @@ int game_cmd(char *cmd)
if (DIRECT_MODE) {
if (cmdstr)
free(cmdstr);
if (game_theme_changed == 2) { /* cursor change only? */
img_t offscreen = gfx_new(game_theme.w, game_theme.h);
oldscreen = gfx_screen(offscreen);
gfx_draw(oldscreen, 0, 0);
game_theme_update();
game_theme_changed = 1;
gfx_screen(oldscreen);
}
if (game_pict_modify(NULL))
goto out;
return 0;