[Scummvm-cvs-logs] SF.net SVN: scummvm:[38908] scummvm/trunk/engines/sci
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Thu Feb 26 17:16:46 CET 2009
Revision: 38908
http://scummvm.svn.sourceforge.net/scummvm/?rev=38908&view=rev
Author: fingolfin
Date: 2009-02-26 16:16:46 +0000 (Thu, 26 Feb 2009)
Log Message:
-----------
SCI: Changed 'typedef enum { } NAME' into C++-style 'enum NAME { }'
Modified Paths:
--------------
scummvm/trunk/engines/sci/gfx/gfx_resmgr.h
scummvm/trunk/engines/sci/gfx/gfx_resource.h
scummvm/trunk/engines/sci/gfx/gfx_system.h
scummvm/trunk/engines/sci/gfx/gfx_tools.h
scummvm/trunk/engines/sci/sfx/sfx_songlib.h
Modified: scummvm/trunk/engines/sci/gfx/gfx_resmgr.h
===================================================================
--- scummvm/trunk/engines/sci/gfx/gfx_resmgr.h 2009-02-26 16:16:38 UTC (rev 38907)
+++ scummvm/trunk/engines/sci/gfx/gfx_resmgr.h 2009-02-26 16:16:46 UTC (rev 38908)
@@ -35,7 +35,7 @@
namespace Sci {
-typedef enum {
+enum gfx_resource_type_t {
GFX_RESOURCE_TYPE_VIEW = 0,
GFX_RESOURCE_TYPE_PIC,
GFX_RESOURCE_TYPE_FONT,
@@ -44,7 +44,7 @@
/* FIXME: Add PAL resource */
GFX_RESOURCE_TYPES_NR /* Number of resource types that are to be supported */
-} gfx_resource_type_t;
+};
#define GFX_RESOURCE_TYPE_0 GFX_RESOURCE_TYPE_VIEW
Modified: scummvm/trunk/engines/sci/gfx/gfx_resource.h
===================================================================
--- scummvm/trunk/engines/sci/gfx/gfx_resource.h 2009-02-26 16:16:38 UTC (rev 38907)
+++ scummvm/trunk/engines/sci/gfx/gfx_resource.h 2009-02-26 16:16:46 UTC (rev 38908)
@@ -123,9 +123,9 @@
};
-typedef enum {
+enum gfxr_font_scale_filter_t {
GFXR_FONT_SCALE_FILTER_NONE
-} gfxr_font_scale_filter_t;
+};
struct text_fragment_t {
Modified: scummvm/trunk/engines/sci/gfx/gfx_system.h
===================================================================
--- scummvm/trunk/engines/sci/gfx/gfx_system.h 2009-02-26 16:16:38 UTC (rev 38907)
+++ scummvm/trunk/engines/sci/gfx/gfx_system.h 2009-02-26 16:16:46 UTC (rev 38908)
@@ -332,60 +332,60 @@
};
-typedef enum {/* Map masks */
+enum gfx_map_mask_t {/* Map masks */
GFX_MASK_NONE = 0,
GFX_MASK_VISUAL = 1,
GFX_MASK_PRIORITY = 2,
GFX_MASK_CONTROL = 4
-} gfx_map_mask_t;
+};
/* 'no priority' mode */
#define GFX_NO_PRIORITY -1
/* Text alignment values */
-typedef enum {
+enum gfx_alignment_t {
ALIGN_RIGHT = -1,
ALIGN_TOP = -1,
ALIGN_CENTER = 1,
ALIGN_LEFT = 0,
ALIGN_BOTTOM = 0
-} gfx_alignment_t;
+};
-typedef enum {
+enum gfx_line_mode_t {
GFX_LINE_MODE_CORRECT, /* Scaled separately */
GFX_LINE_MODE_FAST, /* Scaled by (xfact+yfact)/2 */
GFX_LINE_MODE_FINE /* Always drawn at width 1 */
-} gfx_line_mode_t;
+};
-typedef enum {
+enum gfx_brush_mode_t {
GFX_BRUSH_MODE_SCALED, /* Just scale the brush pixels */
GFX_BRUSH_MODE_ELLIPSES, /* Replace pixels with ellipses */
GFX_BRUSH_MODE_RANDOM_ELLIPSES, /* Replace pixels with ellipses moved and re-scaled randomly */
GFX_BRUSH_MODE_MORERANDOM /* Distribute randomly */
-} gfx_brush_mode_t;
+};
-typedef enum {
+enum gfx_line_style_t {
GFX_LINE_STYLE_NORMAL,
GFX_LINE_STYLE_STIPPLED
-} gfx_line_style_t;
+};
-typedef enum {
+enum gfx_rectangle_fill_t {
GFX_SHADE_FLAT, /* Don't shade */
GFX_SHADE_VERTICALLY, /* Shade vertically */
GFX_SHADE_HORIZONTALLY /* Shade horizontally */
-} gfx_rectangle_fill_t;
+};
-typedef enum {
+enum gfx_color_mode_t {
GFX_COLOR_MODE_AUTO = 0, /* Auto-detect- handled by the gfxop library */
GFX_COLOR_MODE_INDEX = 1, /* Index mode */
GFX_COLOR_MODE_HIGH = 2, /* High color mode (15bpp or 16 bpp) */
GFX_COLOR_MODE_TRUE = 4 /* True color mode (24 bpp padded to 32 bpp) */
-} gfx_color_mode_t;
+};
} // End of namespace Sci
Modified: scummvm/trunk/engines/sci/gfx/gfx_tools.h
===================================================================
--- scummvm/trunk/engines/sci/gfx/gfx_tools.h 2009-02-26 16:16:38 UTC (rev 38907)
+++ scummvm/trunk/engines/sci/gfx/gfx_tools.h 2009-02-26 16:16:46 UTC (rev 38908)
@@ -34,11 +34,11 @@
namespace Sci {
-typedef enum {
+enum gfx_xlate_filter_t {
GFX_XLATE_FILTER_NONE,
GFX_XLATE_FILTER_LINEAR,
GFX_XLATE_FILTER_TRILINEAR
-} gfx_xlate_filter_t;
+};
extern int gfx_crossblit_alpha_threshold; /* Crossblitting functions use this value as threshold
Modified: scummvm/trunk/engines/sci/sfx/sfx_songlib.h
===================================================================
--- scummvm/trunk/engines/sci/sfx/sfx_songlib.h 2009-02-26 16:16:38 UTC (rev 38907)
+++ scummvm/trunk/engines/sci/sfx/sfx_songlib.h 2009-02-26 16:16:46 UTC (rev 38908)
@@ -43,11 +43,11 @@
typedef unsigned long song_handle_t;
-typedef enum {
+enum RESTORE_BEHAVIOR {
RESTORE_BEHAVIOR_CONTINUE, /* restart a song when restored from
a saved game */
RESTORE_BEHAVIOR_RESTART /* continue it from where it was */
-} RESTORE_BEHAVIOR;
+};
struct song_t {
song_handle_t handle;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list