mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
rm unused colortable
This commit is contained in:
parent
bf1199eb2a
commit
32f79db380
@ -27,7 +27,6 @@
|
||||
struct gdi_info
|
||||
{
|
||||
BITMAPINFO bminfo;
|
||||
RGBQUAD colors[256];
|
||||
UINT8 * bmdata;
|
||||
size_t bmsize;
|
||||
};
|
||||
@ -88,6 +87,7 @@ static int drawgdi_window_init(win_window_info *window)
|
||||
// fill in the bitmap info header
|
||||
gdi->bminfo.bmiHeader.biSize = sizeof(gdi->bminfo.bmiHeader);
|
||||
gdi->bminfo.bmiHeader.biPlanes = 1;
|
||||
gdi->bminfo.bmiHeader.biBitCount = 32;
|
||||
gdi->bminfo.bmiHeader.biCompression = BI_RGB;
|
||||
gdi->bminfo.bmiHeader.biSizeImage = 0;
|
||||
gdi->bminfo.bmiHeader.biXPelsPerMeter = 0;
|
||||
@ -95,15 +95,6 @@ static int drawgdi_window_init(win_window_info *window)
|
||||
gdi->bminfo.bmiHeader.biClrUsed = 0;
|
||||
gdi->bminfo.bmiHeader.biClrImportant = 0;
|
||||
|
||||
// initialize the palette to a gray ramp
|
||||
for (int i = 0; i < 256; i++)
|
||||
{
|
||||
gdi->colors[i].rgbRed = i;
|
||||
gdi->colors[i].rgbGreen = i;
|
||||
gdi->colors[i].rgbBlue = i;
|
||||
gdi->colors[i].rgbReserved = i;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -182,7 +173,6 @@ static int drawgdi_window_draw(win_window_info *window, HDC dc, int update)
|
||||
// fill in bitmap-specific info
|
||||
gdi->bminfo.bmiHeader.biWidth = pitch;
|
||||
gdi->bminfo.bmiHeader.biHeight = -height;
|
||||
gdi->bminfo.bmiHeader.biBitCount = 32;
|
||||
|
||||
// blit to the screen
|
||||
StretchDIBits(dc, 0, 0, width, height,
|
||||
|
Loading…
Reference in New Issue
Block a user