Changeset 46 for trunk/src/gdi32
- Timestamp:
- Jun 7, 1999, 10:58:22 PM (26 years ago)
- Location:
- trunk/src/gdi32
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/CALLBACK.CPP
r4 r46 1 /* $Id: CALLBACK.CPP,v 1.1 1999-05-24 20:19:39 ktk Exp $ */2 3 1 /* 4 2 * GDI32 support code for Line DDA callbacks -
trunk/src/gdi32/CALLBACK.H
r4 r46 1 /* $Id: CALLBACK.H,v 1.1 1999-05-24 20:19:39 ktk Exp $ */2 3 1 /* 4 2 * GDI32 support code for Line DDA callbacks -
trunk/src/gdi32/dibsect.cpp
r4 r46 1 /* $Id: dibsect.cpp,v 1.1 1999-05-24 20:19:39 ktk Exp $ */2 3 1 /* 4 2 * GDI32 DIB sections -
trunk/src/gdi32/dibsect.h
r4 r46 1 /* $Id: dibsect.h,v 1.1 1999-05-24 20:19:39 ktk Exp $ */2 3 1 /* 4 2 * GDI32 DIB sections -
trunk/src/gdi32/gdi32.cpp
r37 r46 1 /* $Id: gdi32.cpp,v 1. 2 1999-06-06 12:25:48 cbratschiExp $ */1 /* $Id: gdi32.cpp,v 1.3 1999-06-07 20:57:59 sandervl Exp $ */ 2 2 3 3 /* … … 43 43 } POLYTEXTW; 44 44 45 46 static ULONG QueryPaletteSize(BITMAPINFOHEADER *pBHdr) 47 { 48 ULONG cbPalette; 49 50 switch (pBHdr->biBitCount) 51 { 52 case 1: 53 case 4: 54 case 8: 55 cbPalette = (1 << pBHdr->biBitCount) * sizeof(RGBQUAD); 56 break; 57 58 case 16: 59 case 24: 60 case 32: 61 cbPalette = 0; 62 break; 63 64 default: 65 dprintf(("QueryPaletteSize: error pBHdr->biBitCount = %d", pBHdr->biBitCount)); 66 cbPalette = -1; 67 } 68 69 return cbPalette; 70 } 45 71 46 72 static ULONG CalcBitmapSize(ULONG cBits, LONG cx, LONG cy) … … 1876 1902 // Dont't like dirty pointers, but Open32 needs a bit help. 1877 1903 // Only tested with winmine. 1878 palsize = (1 << info->bmiHeader.biBitCount) * sizeof(RGBQUAD);1904 palsize = QueryPaletteSize((BITMAPINFOHEADER*)&info->bmiHeader); 1879 1905 imgsize = CalcBitmapSize(info->bmiHeader.biBitCount, 1880 1906 info->bmiHeader.biWidth, info->bmiHeader.biHeight); -
trunk/src/gdi32/makefile
r4 r46 1 # $Id: makefile,v 1.1 1999-05-24 20:19:40 ktk Exp $2 3 1 # 4 2 # PD-Win32 API … … 55 53 $(PDWIN32_INCLUDE)\misc.h \ 56 54 57 initterm.obj: initterm.c 55 initterm.obj: initterm.cpp 58 56 59 57 -
trunk/src/gdi32/opengl.cpp
r4 r46 1 /* $Id: opengl.cpp,v 1.1 1999-05-24 20:19:40 ktk Exp $ */2 3 1 /* 4 2 * GDI32 OpenGl stubs
Note:
See TracChangeset
for help on using the changeset viewer.