diff options
author | Max Horn | 2009-02-24 20:33:31 +0000 |
---|---|---|
committer | Max Horn | 2009-02-24 20:33:31 +0000 |
commit | 220270586c5a42f7352277bc338c54b22e8b7372 (patch) | |
tree | cf852a571555bce9fc9d0cd8f5fab326976397bf /engines/sci/gfx/gfx_driver.h | |
parent | 241340a07ea138c6badd3727683097e863ef35f0 (diff) | |
download | scummvm-rg350-220270586c5a42f7352277bc338c54b22e8b7372.tar.gz scummvm-rg350-220270586c5a42f7352277bc338c54b22e8b7372.tar.bz2 scummvm-rg350-220270586c5a42f7352277bc338c54b22e8b7372.zip |
SCI: Removed usec_sleep from gfx_driver_t (call OSystem::delayMillis directly instead); added remarks that busy-waiting like this with delayMillis is maybe not the best way, and that gfx_driver_t should be either removed or turned into a class
svn-id: r38851
Diffstat (limited to 'engines/sci/gfx/gfx_driver.h')
-rw-r--r-- | engines/sci/gfx/gfx_driver.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/engines/sci/gfx/gfx_driver.h b/engines/sci/gfx/gfx_driver.h index 3ecdaa80cf..343d0199d0 100644 --- a/engines/sci/gfx/gfx_driver.h +++ b/engines/sci/gfx/gfx_driver.h @@ -31,11 +31,11 @@ namespace Sci { -typedef enum { +enum gfx_buffer_t { GFX_BUFFER_FRONT = 0, GFX_BUFFER_BACK = 1, GFX_BUFFER_STATIC = 2 -} gfx_buffer_t; +}; /* graphics driver hints */ @@ -71,6 +71,7 @@ typedef enum { ** must use a reasonable default value. */ +// FIXME: Turn this into a class, or get rid of it completely. struct gfx_driver_t { /* Graphics driver */ gfx_mode_t *mode; /* Currently active mode, NULL if no mode is active */ @@ -302,17 +303,6 @@ struct gfx_driver_t { /* Graphics driver */ ** queue, or the null event if there is none. */ - int (*usec_sleep)(gfx_driver_t *drv, long usecs); - /* Sleeps the specified amount of microseconds, or until the mouse moves - ** Parameters: (gfx_driver_t *) drv: The relevant driver - ** (long) usecs: Amount of microseconds to sleep - ** Returns : (int) GFX_OK or GFX_FATAL - ** This function returns when the specified amount of microseconds has - ** elapsed, or when the mouse pointer has been moved and needs to be redrawn. - ** Only targets that can handle colored mouse pointers may choose to handle - ** all mouse management internally. - */ - void *state; /* Reserved for internal use */ }; |