aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx
diff options
context:
space:
mode:
authorAndre Heider2009-02-22 10:20:45 +0000
committerAndre Heider2009-02-22 10:20:45 +0000
commit7d21acd18b65d8d213755754ce16f7b075c52039 (patch)
treef203e7b124a6c64c2bb9c51d8d39f94157faab99 /engines/sci/gfx
parentf6de07921e92a57210cc44a0daffc95491136d42 (diff)
downloadscummvm-rg350-7d21acd18b65d8d213755754ce16f7b075c52039.tar.gz
scummvm-rg350-7d21acd18b65d8d213755754ce16f7b075c52039.tar.bz2
scummvm-rg350-7d21acd18b65d8d213755754ce16f7b075c52039.zip
replace sci_gettime in gfx/
svn-id: r38781
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r--engines/sci/gfx/sci_widgets.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/sci/gfx/sci_widgets.cpp b/engines/sci/gfx/sci_widgets.cpp
index 68182ec0d0..76bace3960 100644
--- a/engines/sci/gfx/sci_widgets.cpp
+++ b/engines/sci/gfx/sci_widgets.cpp
@@ -29,6 +29,8 @@
#include "sci/gfx/menubar.h"
#include "sci/include/sci_widgets.h"
+#include "common/system.h"
+
namespace Sci {
#define SCI_SPECIAL_CHAR_ARROW_UP 0x18
@@ -340,8 +342,6 @@ gfxw_list_t *sciw_new_text_control(gfxw_port_t *port, reg_t ID, rect_t zone, cha
gfxw_list_t *sciw_new_edit_control(gfxw_port_t *port, reg_t ID, rect_t zone, char *text, int font, unsigned int cursor,
char inverse) {
gfxw_text_t *text_handle;
- long draw_cursor;
- long foo;
gfxw_list_t *list;
int cursor_height = gfxop_get_font_height(port->visual->gfx_state, font);
@@ -356,10 +356,7 @@ gfxw_list_t *sciw_new_edit_control(gfxw_port_t *port, reg_t ID, rect_t zone, cha
zone.x = 1;
zone.y = 1;
- sci_gettime(&foo, &draw_cursor);
- draw_cursor = draw_cursor > 500000;
-
- if (!draw_cursor) {
+ if ((g_system->getMillis() % 1000) < 500) {
text_handle = gfxw_new_text(port->visual->gfx_state, zone, font, text, ALIGN_LEFT, ALIGN_TOP,
port->color, port->color, port->bgcolor, GFXR_FONT_FLAG_NO_NEWLINES);