diff options
author | Max Horn | 2009-02-26 16:16:53 +0000 |
---|---|---|
committer | Max Horn | 2009-02-26 16:16:53 +0000 |
commit | 3343dca6dc9dfe18d4f5e5a280c1e9ffe50da3d3 (patch) | |
tree | 9b432909b43e06dcbbca515608d0d77b0545c0ad /engines/sci/gfx/gfx_driver.cpp | |
parent | fde001ce8148caef9a3c6480cc870a1f0727ed6a (diff) | |
download | scummvm-rg350-3343dca6dc9dfe18d4f5e5a280c1e9ffe50da3d3.tar.gz scummvm-rg350-3343dca6dc9dfe18d4f5e5a280c1e9ffe50da3d3.tar.bz2 scummvm-rg350-3343dca6dc9dfe18d4f5e5a280c1e9ffe50da3d3.zip |
SCI: Modified gfx_new_mode to take a Graphics::PixelFormat
svn-id: r38909
Diffstat (limited to 'engines/sci/gfx/gfx_driver.cpp')
-rw-r--r-- | engines/sci/gfx/gfx_driver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/gfx/gfx_driver.cpp b/engines/sci/gfx/gfx_driver.cpp index e77be19611..5951ef252f 100644 --- a/engines/sci/gfx/gfx_driver.cpp +++ b/engines/sci/gfx/gfx_driver.cpp @@ -44,8 +44,7 @@ struct _scummvm_driver_state { int _modifierStates; -static int -scummvm_init_specific(gfx_driver_t *drv, int xfact, int yfact, int bytespp) { +static int scummvm_init_specific(gfx_driver_t *drv, int xfact, int yfact, int bytespp) { int i; if (!drv->state) // = S @@ -77,7 +76,8 @@ scummvm_init_specific(gfx_driver_t *drv, int xfact, int yfact, int bytespp) { memset(S->visual[i], 0, S->xsize * S->ysize); } - drv->mode = gfx_new_mode(xfact, yfact, bytespp, 0, 0, 0, 0, 0, 0, 0, 0, 256, 0); + Graphics::PixelFormat format = { bytespp, 0, 0, 0, 0, 0, 0, 0, 0 }; + drv->mode = gfx_new_mode(xfact, yfact, format, 256, 0); return GFX_OK; } |