aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/res_view0.cpp
diff options
context:
space:
mode:
authorMax Horn2009-05-12 23:30:10 +0000
committerMax Horn2009-05-12 23:30:10 +0000
commit0255cd0213a219fba69860200a987a0d837493a0 (patch)
tree1dd1ce850fc46e468e1d00a0ed86f5686630b7be /engines/sci/gfx/res_view0.cpp
parent8d8e9d3aaa717616c001083913d0c1e6fff2c580 (diff)
downloadscummvm-rg350-0255cd0213a219fba69860200a987a0d837493a0.tar.gz
scummvm-rg350-0255cd0213a219fba69860200a987a0d837493a0.tar.bz2
scummvm-rg350-0255cd0213a219fba69860200a987a0d837493a0.zip
SCI: Removed sci_memory.h/.cpp
svn-id: r40514
Diffstat (limited to 'engines/sci/gfx/res_view0.cpp')
-rw-r--r--engines/sci/gfx/res_view0.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/sci/gfx/res_view0.cpp b/engines/sci/gfx/res_view0.cpp
index dd01ae4ad0..efc5cccc95 100644
--- a/engines/sci/gfx/res_view0.cpp
+++ b/engines/sci/gfx/res_view0.cpp
@@ -25,7 +25,6 @@
#include "common/endian.h"
-#include "sci/sci_memory.h"
#include "sci/gfx/gfx_system.h"
#include "sci/gfx/gfx_resource.h"
#include "sci/gfx/gfx_tools.h"
@@ -132,7 +131,7 @@ static int gfxr_draw_loop0(gfxr_loop_t *dest, int id, int loop, byte *resource,
return 1;
}
- dest->cels = (gfx_pixmap_t**)sci_malloc(sizeof(gfx_pixmap_t *) * cels_nr);
+ dest->cels = (gfx_pixmap_t**)malloc(sizeof(gfx_pixmap_t *) * cels_nr);
for (i = 0; i < cels_nr; i++) {
int cel_offset = READ_LE_UINT16(resource + offset + 4 + (i << 1));
@@ -174,7 +173,7 @@ gfxr_view_t *gfxr_draw_view0(int id, byte *resource, int size, int palette) {
return NULL;
}
- view = (gfxr_view_t *)sci_malloc(sizeof(gfxr_view_t));
+ view = (gfxr_view_t *)malloc(sizeof(gfxr_view_t));
view->ID = id;
view->loops_nr = resource[V0_LOOPS_NR_OFFSET];
@@ -198,7 +197,7 @@ gfxr_view_t *gfxr_draw_view0(int id, byte *resource, int size, int palette) {
return NULL;
}
- view->loops = (gfxr_loop_t*)sci_malloc(sizeof(gfxr_loop_t) * ((view->loops_nr) ? view->loops_nr : 1)); /* Alloc 1 if no loop */
+ view->loops = (gfxr_loop_t*)malloc(sizeof(gfxr_loop_t) * ((view->loops_nr) ? view->loops_nr : 1)); /* Alloc 1 if no loop */
for (i = 0; i < view->loops_nr; i++) {
int error_token = 0;