now you can change cursors from direct mode
This commit is contained in:
parent
3f998785f2
commit
31a065597a
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue