comparison GUIFont.h @ 1255:7e5e328454c7

zero size array warning in guifont silenced
author Grumpy7
date Tue, 11 Jun 2013 23:10:30 +0200
parents 8b3e7d5ba069
children dfc9484ed94c
comparison
equal deleted inserted replaced
1254:b9747d9e9b4e 1255:7e5e328454c7
10 unsigned int uRightSpacing; 10 unsigned int uRightSpacing;
11 }; 11 };
12 #pragma pack(pop) 12 #pragma pack(pop)
13 13
14 /* 170 */ 14 /* 170 */
15 #pragma warning( push )
16 #pragma warning( disable : 4200 )
15 #pragma pack(push, 1) 17 #pragma pack(push, 1)
16 struct GUIFont 18 struct GUIFont
17 { 19 {
18 20
19 //----- (0044C4DE) -------------------------------------------------------- 21 //----- (0044C4DE) --------------------------------------------------------
41 int palletes_count; 43 int palletes_count;
42 unsigned __int16 *pFontPalettes[5]; 44 unsigned __int16 *pFontPalettes[5];
43 GUICharMetric pMetrics[256]; 45 GUICharMetric pMetrics[256];
44 int font_pixels_offset[256]; 46 int font_pixels_offset[256];
45 unsigned char pFontData[0]; //array of font pixels 47 unsigned char pFontData[0]; //array of font pixels
48
46 }; 49 };
47 #pragma pack(pop) 50 #pragma pack(pop)
51 #pragma warning( pop )
48 52
49 GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...); 53 GUIFont *LoadFont(const char *pFontFile, const char *pFontPalette, ...);
50 char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, signed int uX, int a5); 54 char * FitTextInAWindow(const char *pInString, GUIFont *pFont, GUIWindow *pWindow, signed int uX, int a5);
51 55
52 56