diff options
author | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
commit | 24c4d5b06d231785db01500360c26815d8fe4d15 (patch) | |
tree | 757477dbdc02025cc29690a4e66e40f872cab02b /src/video | |
parent | 36bb92ae241403d61dc7a3e5a1696b615be61395 (diff) | |
download | openttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz |
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/video')
-rw-r--r-- | src/video/cocoa_v.mm | 12 | ||||
-rw-r--r-- | src/video/sdl_v.cpp | 4 | ||||
-rw-r--r-- | src/video/win32_v.cpp | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/video/cocoa_v.mm b/src/video/cocoa_v.mm index 698f48e42..e7531edbf 100644 --- a/src/video/cocoa_v.mm +++ b/src/video/cocoa_v.mm @@ -31,10 +31,10 @@ /* Portions of CPS.h */ -typedef struct CPSProcessSerNum { +struct CPSProcessSerNum { UInt32 lo; UInt32 hi; -} CPSProcessSerNum; +}; extern "C" OSErr CPSGetCurrentProcess(CPSProcessSerNum* psn); extern "C" OSErr CPSEnableForegroundOperation(CPSProcessSerNum* psn, UInt32 _arg2, UInt32 _arg3, UInt32 _arg4, UInt32 _arg5); @@ -103,11 +103,11 @@ extern bool _dbg_screen_rect; */ #define QZ_GAMMA_TABLE_SIZE 256 -typedef struct { +struct OTTD_QuartzGammaTable { CGGammaValue red[QZ_GAMMA_TABLE_SIZE]; CGGammaValue green[QZ_GAMMA_TABLE_SIZE]; CGGammaValue blue[QZ_GAMMA_TABLE_SIZE]; -} OTTD_QuartzGammaTable; +}; /* Add methods to get at private members of NSScreen. * Since there is a bug in Apple's screen switching code that does not update @@ -210,10 +210,10 @@ static void QZ_CheckPaletteAnim() -typedef struct VkMapping { +struct VkMapping { unsigned short vk_from; byte map_to; -} VkMapping; +}; #define AS(x, z) {x, z} diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp index 226c54c63..668d993b4 100644 --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -209,11 +209,11 @@ static bool CreateMainSurface(int w, int h) return true; } -typedef struct VkMapping { +struct VkMapping { uint16 vk_from; byte vk_count; byte map_to; -} VkMapping; +}; #define AS(x, z) {x, 0, z} #define AM(x, y, z, w) {x, y - x, z} diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index e8111dc8b..4e9f43236 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -73,11 +73,11 @@ static void UpdatePalette(HDC dc, uint start, uint count) SetDIBColorTable(dc, start, count, rgb); } -typedef struct { +struct VkMapping { byte vk_from; byte vk_count; byte map_to; -} VkMapping; +}; #define AS(x, z) {x, 0, z} #define AM(x, y, z, w) {x, y - x, z} |