Fixed bug #467
authorSam Lantinga <slouken@libsdl.org>
Sun, 22 Jul 2007 13:22:47 +0000
changeset 2208b03710fb0333
parent 2207 d63e9f5944ae
child 2209 b292fa4941c6
Fixed bug #467

Remove trailing commas from enums
include/SDL_pixels.h
include/SDL_video.h
     1.1 --- a/include/SDL_pixels.h	Sat Jul 21 17:09:01 2007 +0000
     1.2 +++ b/include/SDL_pixels.h	Sun Jul 22 13:22:47 2007 +0000
     1.3 @@ -50,14 +50,14 @@
     1.4      SDL_PIXELTYPE_ARRAYU16,
     1.5      SDL_PIXELTYPE_ARRAYU32,
     1.6      SDL_PIXELTYPE_ARRAYF16,
     1.7 -    SDL_PIXELTYPE_ARRAYF32,
     1.8 +    SDL_PIXELTYPE_ARRAYF32
     1.9  };
    1.10  
    1.11  enum
    1.12  {                               /* bitmap pixel order, high bit -> low bit */
    1.13      SDL_BITMAPORDER_NONE,
    1.14      SDL_BITMAPORDER_4321,
    1.15 -    SDL_BITMAPORDER_1234,
    1.16 +    SDL_BITMAPORDER_1234
    1.17  };
    1.18  enum
    1.19  {                               /* packed component order, high bit -> low bit */
    1.20 @@ -69,7 +69,7 @@
    1.21      SDL_PACKEDORDER_XBGR,
    1.22      SDL_PACKEDORDER_BGRX,
    1.23      SDL_PACKEDORDER_ABGR,
    1.24 -    SDL_PACKEDORDER_BGRA,
    1.25 +    SDL_PACKEDORDER_BGRA
    1.26  };
    1.27  enum
    1.28  {                               /* array component order, low byte -> high byte */
    1.29 @@ -79,7 +79,7 @@
    1.30      SDL_ARRAYORDER_ARGB,
    1.31      SDL_ARRAYORDER_BGR,
    1.32      SDL_ARRAYORDER_BGRA,
    1.33 -    SDL_ARRAYORDER_ABGR,
    1.34 +    SDL_ARRAYORDER_ABGR
    1.35  };
    1.36  
    1.37  enum
    1.38 @@ -92,7 +92,7 @@
    1.39      SDL_PACKEDLAYOUT_565,
    1.40      SDL_PACKEDLAYOUT_8888,
    1.41      SDL_PACKEDLAYOUT_2101010,
    1.42 -    SDL_PACKEDLAYOUT_1010102,
    1.43 +    SDL_PACKEDLAYOUT_1010102
    1.44  };
    1.45  
    1.46  #define SDL_DEFINE_PIXELFOURCC(A, B, C, D) \
    1.47 @@ -188,7 +188,7 @@
    1.48      SDL_PIXELFORMAT_UYVY =      /* Packed mode: U0+Y0+V0+Y1 (1 plane) */
    1.49          SDL_DEFINE_PIXELFOURCC('U', 'Y', 'V', 'Y'),
    1.50      SDL_PIXELFORMAT_YVYU =      /* Packed mode: Y0+V0+Y1+U0 (1 plane) */
    1.51 -        SDL_DEFINE_PIXELFOURCC('Y', 'V', 'Y', 'U'),
    1.52 +        SDL_DEFINE_PIXELFOURCC('Y', 'V', 'Y', 'U')
    1.53  };
    1.54  
    1.55  typedef struct SDL_Color
     2.1 --- a/include/SDL_video.h	Sat Jul 21 17:09:01 2007 +0000
     2.2 +++ b/include/SDL_video.h	Sun Jul 22 13:22:47 2007 +0000
     2.3 @@ -126,7 +126,7 @@
     2.4      SDL_WINDOW_MAXIMIZED = 0x00000040,          /**< maximized */
     2.5      SDL_WINDOW_INPUT_GRABBED = 0x00000100,      /**< window has grabbed input focus */
     2.6      SDL_WINDOW_INPUT_FOCUS = 0x00000200,        /**< window has input focus */
     2.7 -    SDL_WINDOW_MOUSE_FOCUS = 0x00000400,        /**< window has mouse focus */
     2.8 +    SDL_WINDOW_MOUSE_FOCUS = 0x00000400         /**< window has mouse focus */
     2.9  } SDL_WindowFlags;
    2.10  
    2.11  /**
    2.12 @@ -160,7 +160,7 @@
    2.13      SDL_WINDOWEVENT_LEAVE,              /**< The window has lost mouse focus */
    2.14      SDL_WINDOWEVENT_FOCUS_GAINED,       /**< The window has gained keyboard focus */
    2.15      SDL_WINDOWEVENT_FOCUS_LOST,         /**< The window has lost keyboard focus */
    2.16 -    SDL_WINDOWEVENT_CLOSE,              /**< The window manager requests that the window be closed */
    2.17 +    SDL_WINDOWEVENT_CLOSE               /**< The window manager requests that the window be closed */
    2.18  } SDL_WindowEventID;
    2.19  
    2.20  /**
    2.21 @@ -176,7 +176,7 @@
    2.22      SDL_RENDERER_PRESENTFLIP3 = 0x00000008,     /**< Present uses a flip, rotating between two back buffers and a front buffer */
    2.23      SDL_RENDERER_PRESENTDISCARD = 0x00000010,   /**< Present leaves the contents of the backbuffer undefined */
    2.24      SDL_RENDERER_PRESENTVSYNC = 0x00000020,     /**< Present is synchronized with the refresh rate */
    2.25 -    SDL_RENDERER_ACCELERATED = 0x00000040,      /**< The renderer uses hardware acceleration */
    2.26 +    SDL_RENDERER_ACCELERATED = 0x00000040       /**< The renderer uses hardware acceleration */
    2.27  } SDL_RendererFlags;
    2.28  
    2.29  /**
    2.30 @@ -205,7 +205,7 @@
    2.31  typedef enum
    2.32  {
    2.33      SDL_TEXTUREACCESS_LOCAL,    /**< Lockable system memory */
    2.34 -    SDL_TEXTUREACCESS_REMOTE,   /**< Unlockable video memory */
    2.35 +    SDL_TEXTUREACCESS_REMOTE    /**< Unlockable video memory */
    2.36  } SDL_TextureAccess;
    2.37  
    2.38  /**
    2.39 @@ -217,7 +217,7 @@
    2.40  {
    2.41      SDL_TEXTUREMODULATE_NONE = 0x00000000,     /**< No modulation */
    2.42      SDL_TEXTUREMODULATE_COLOR = 0x00000001,    /**< srcC = srcC * color */
    2.43 -    SDL_TEXTUREMODULATE_ALPHA = 0x00000002,    /**< srcA = srcA * alpha */
    2.44 +    SDL_TEXTUREMODULATE_ALPHA = 0x00000002     /**< srcA = srcA * alpha */
    2.45  } SDL_TextureModulate;
    2.46  
    2.47  /**
    2.48 @@ -231,7 +231,7 @@
    2.49      SDL_TEXTUREBLENDMODE_MASK = 0x00000001,     /**< dst = A ? src : dst (alpha is mask) */
    2.50      SDL_TEXTUREBLENDMODE_BLEND = 0x00000002,    /**< dst = (src * A) + (dst * (1-A)) */
    2.51      SDL_TEXTUREBLENDMODE_ADD = 0x00000004,      /**< dst = (src * A) + dst */
    2.52 -    SDL_TEXTUREBLENDMODE_MOD = 0x00000008,      /**< dst = src * dst */
    2.53 +    SDL_TEXTUREBLENDMODE_MOD = 0x00000008       /**< dst = src * dst */
    2.54  } SDL_TextureBlendMode;
    2.55  
    2.56  /**
    2.57 @@ -244,7 +244,7 @@
    2.58      SDL_TEXTURESCALEMODE_NONE = 0x00000000,     /**< No scaling, rectangles must match dimensions */
    2.59      SDL_TEXTURESCALEMODE_FAST = 0x00000001,     /**< Point sampling or equivalent algorithm */
    2.60      SDL_TEXTURESCALEMODE_SLOW = 0x00000002,     /**< Linear filtering or equivalent algorithm */
    2.61 -    SDL_TEXTURESCALEMODE_BEST = 0x00000004,     /**< Bicubic filtering or equivalent algorithm */
    2.62 +    SDL_TEXTURESCALEMODE_BEST = 0x00000004      /**< Bicubic filtering or equivalent algorithm */
    2.63  } SDL_TextureScaleMode;
    2.64  
    2.65  /**