From 8f71864bef912a9cd8b8f649c5acbe638d48fc24 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 15 Jul 2005 14:16:14 +0000 Subject: (svn r2571) Add explicit type Pixel for ... Pixels --- win32.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'win32.c') diff --git a/win32.c b/win32.c index d5bcdf7c6..00107cc55 100644 --- a/win32.c +++ b/win32.c @@ -21,9 +21,9 @@ static struct { HWND main_wnd; HBITMAP dib_sect; - void *bitmap_bits; - void *buffer_bits; - void *alloced_bits; + Pixel *bitmap_bits; + Pixel *buffer_bits; + Pixel *alloced_bits; HPALETTE gdi_palette; int width,height; int width_org, height_org; @@ -568,7 +568,7 @@ static bool AllocateDibSection(int w, int h) DeleteObject(_wnd.dib_sect); dc = GetDC(0); - _wnd.dib_sect = CreateDIBSection(dc, bi, DIB_RGB_COLORS, &_wnd.bitmap_bits, NULL, 0); + _wnd.dib_sect = CreateDIBSection(dc, bi, DIB_RGB_COLORS, (void**)&_wnd.bitmap_bits, NULL, 0); if (_wnd.dib_sect == NULL) error("CreateDIBSection failed"); ReleaseDC(0, dc); @@ -665,8 +665,8 @@ static void Win32GdiStop(void) static void filter(int left, int top, int width, int height) { uint p = _screen.pitch; - byte *s = (byte*)_wnd.buffer_bits + top * p + left; - byte *d = (byte*)_wnd.bitmap_bits + top * p * 4 + left * 2; + const Pixel *s = _wnd.buffer_bits + top * p + left; + Pixel *d = _wnd.bitmap_bits + top * p * 4 + left * 2; for (; height > 0; height--) { int i; -- cgit v1.2.3-70-g09d2