aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2009-06-15 13:50:41 +0000
committerWillem Jan Palenstijn2009-06-15 13:50:41 +0000
commit3d9d542908323c3d0ce545589e5532175eda9063 (patch)
tree317d4fa197ba477f09298ba9b62748f2ab8b9086 /engines/sci/gfx
parente74ba9af6b95c70cdcdbcf700e0964bf0be0fca1 (diff)
downloadscummvm-rg350-3d9d542908323c3d0ce545589e5532175eda9063.tar.gz
scummvm-rg350-3d9d542908323c3d0ce545589e5532175eda9063.tar.bz2
scummvm-rg350-3d9d542908323c3d0ce545589e5532175eda9063.zip
Fix compilation of SCI engine
svn-id: r41546
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r--engines/sci/gfx/gfx_driver.cpp2
-rw-r--r--engines/sci/gfx/res_pic.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/gfx/gfx_driver.cpp b/engines/sci/gfx/gfx_driver.cpp
index 961eecc6fd..42be711499 100644
--- a/engines/sci/gfx/gfx_driver.cpp
+++ b/engines/sci/gfx/gfx_driver.cpp
@@ -36,7 +36,7 @@ namespace Sci {
GfxDriver::GfxDriver(int xfact, int yfact, int bytespp) {
int i;
- Graphics::PixelFormat format = { bytespp, 0, 0, 0, 0, 0, 0, 0, 0 };
+ Graphics::PixelFormat format(bytespp, 0, 0, 0, 0, 0, 0, 0, 0);
_mode = gfx_new_mode(xfact, yfact, format, new Palette(256), 0);
_mode->xsize = xfact * 320;
_mode->ysize = yfact * 200;
diff --git a/engines/sci/gfx/res_pic.cpp b/engines/sci/gfx/res_pic.cpp
index 9279de20f4..bb9e8a75a7 100644
--- a/engines/sci/gfx/res_pic.cpp
+++ b/engines/sci/gfx/res_pic.cpp
@@ -1548,7 +1548,7 @@ void gfxr_draw_pic01(gfxr_pic_t *pic, int flags, int default_palette, int size,
view->index_height = CLIP<int>(view->index_height, 0, portBounds.height());
// Set up mode structure for resizing the view
- Graphics::PixelFormat format = { 1, 0, 0, 0, 0, 0, 0, 0, 0 }; // 1byte/p, which handles masks and the rest for us
+ Graphics::PixelFormat format(1, 0, 0, 0, 0, 0, 0, 0, 0); // 1byte/p, which handles masks and the rest for us
gfx_mode_t *mode = gfx_new_mode(pic->visual_map->index_width / 320,
pic->visual_map->index_height / 200, format, view->palette, 0);
@@ -1654,7 +1654,7 @@ void gfxr_draw_pic11(gfxr_pic_t *pic, int flags, int default_palette, int size,
view->palette = pic->visual_map->palette->getref();
// Set up mode structure for resizing the view
- Graphics::PixelFormat format = { 1, 0, 0, 0, 0, 0, 0, 0, 0 }; // 1 byte/p, which handles masks and the rest for us
+ Graphics::PixelFormat format(1, 0, 0, 0, 0, 0, 0, 0, 0); // 1 byte/p, which handles masks and the rest for us
gfx_mode_t *mode = gfx_new_mode(pic->visual_map->index_width / 320, pic->visual_map->index_height / 200, format, view->palette, 0);
gfx_xlate_pixmap(view, mode, GFX_XLATE_FILTER_NONE);