aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/resource/sci_cursor_0.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2009-02-21 09:44:53 +0000
committerPaweł Kołodziejski2009-02-21 09:44:53 +0000
commitea495756897eafec48ab93f97e978df4c5593f1f (patch)
treeb7b2225e425b62e4a1fe3232785a01e31964a343 /engines/sci/gfx/resource/sci_cursor_0.cpp
parent9ad232e5cfac377b8a1b763683e19358b3d56c37 (diff)
downloadscummvm-rg350-ea495756897eafec48ab93f97e978df4c5593f1f.tar.gz
scummvm-rg350-ea495756897eafec48ab93f97e978df4c5593f1f.tar.bz2
scummvm-rg350-ea495756897eafec48ab93f97e978df4c5593f1f.zip
formating
svn-id: r38673
Diffstat (limited to 'engines/sci/gfx/resource/sci_cursor_0.cpp')
-rw-r--r--engines/sci/gfx/resource/sci_cursor_0.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/engines/sci/gfx/resource/sci_cursor_0.cpp b/engines/sci/gfx/resource/sci_cursor_0.cpp
index 5af2f106b8..e95b9cff68 100644
--- a/engines/sci/gfx/resource/sci_cursor_0.cpp
+++ b/engines/sci/gfx/resource/sci_cursor_0.cpp
@@ -42,9 +42,7 @@ gfx_pixmap_color_t gfx_sci01_cursor_colors[GFX_SCI01_CURSOR_COLORS_NR] = {
{GFX_COLOR_INDEX_UNMAPPED, 0xaa, 0xaa, 0xaa}
};
-
-static gfx_pixmap_t *
-_gfxr_draw_cursor(int id, byte *resource, int size, int sci01) {
+static gfx_pixmap_t *_gfxr_draw_cursor(int id, byte *resource, int size, int sci01) {
int colors[4] = {0, 1, GFX_CURSOR_TRANSPARENT, 1};
int line;
byte *data;
@@ -67,7 +65,7 @@ _gfxr_draw_cursor(int id, byte *resource, int size, int sci01) {
if (sci01) {
retval->xoffset = get_int_16(resource);
retval->yoffset = get_int_16(resource + 2);
- } else if (resource[3]) /* center */
+ } else if (resource[3]) // center
retval->xoffset = retval->yoffset = CURSOR_SIZE / 2;
else
retval->xoffset = retval->yoffset = 0;
@@ -81,23 +79,17 @@ _gfxr_draw_cursor(int id, byte *resource, int size, int sci01) {
int i;
for (i = 0; i < 16; i++) {
- int color_code = ((mask_a << i) & 0x8000)
- | (((mask_b << i) >> 1) & 0x4000);
-
+ int color_code = ((mask_a << i) & 0x8000) | (((mask_b << i) >> 1) & 0x4000);
*data++ = colors[color_code >> 14];
}
}
return retval;
}
-
-gfx_pixmap_t *
-gfxr_draw_cursor0(int id, byte *resource, int size) {
+gfx_pixmap_t *gfxr_draw_cursor0(int id, byte *resource, int size) {
return _gfxr_draw_cursor(id, resource, size, 0);
}
-gfx_pixmap_t *
-gfxr_draw_cursor01(int id, byte *resource, int size) {
+gfx_pixmap_t *gfxr_draw_cursor01(int id, byte *resource, int size) {
return _gfxr_draw_cursor(id, resource, size, 1);
}
-