Previous 199869 Revisions Next

r29274 Friday 4th April, 2014 at 17:12:39 UTC by hap
fix compiler warning?
[src/osd/windows]drawgdi.c

trunk/src/osd/windows/drawgdi.c
r29273r29274
8181
8282static int drawgdi_window_init(win_window_info *window)
8383{
84   gdi_info *gdi;
85   int i;
86
8784   // allocate memory for our structures
88   gdi = global_alloc_clear(gdi_info);
85   gdi_info *gdi = global_alloc_clear(gdi_info);
8986   window->drawdata = gdi;
9087
9188   // fill in the bitmap info header
r29273r29274
9996   gdi->bminfo.bmiHeader.biClrImportant    = 0;
10097
10198   // initialize the palette to a gray ramp
102   for (i = 0; i < 256; i++)
99   for (int i = 0; i < 256; i++)
103100   {
104      gdi->bminfo.bmiColors[i].rgbRed         = i;
105      gdi->bminfo.bmiColors[i].rgbGreen       = i;
106      gdi->bminfo.bmiColors[i].rgbBlue        = i;
107      gdi->bminfo.bmiColors[i].rgbReserved    = i;
101      gdi->colors[i].rgbRed               = i;
102      gdi->colors[i].rgbGreen             = i;
103      gdi->colors[i].rgbBlue              = i;
104      gdi->colors[i].rgbReserved          = i;
108105   }
109106
110107   return 0;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team