|
|
| version 1.3, 2004/03/25 15:22:43 | version 1.5, 2004/04/06 18:41:00 |
|---|---|
| Line 437 static const INITBL np2skini[] = { | Line 437 static const INITBL np2skini[] = { |
| {"WindposY", INITYPE_SINT32, &skbdcfg.posy, 0}, | {"WindposY", INITYPE_SINT32, &skbdcfg.posy, 0}, |
| {"windtype", INITYPE_BOOL, &skbdcfg.type, 0}}; | {"windtype", INITYPE_BOOL, &skbdcfg.type, 0}}; |
| static void skpalcnv(CMNPAL *dst, RGB32 *src, UINT pals, UINT bpp) { | static void skpalcnv(CMNPAL *dst, const RGB32 *src, UINT pals, UINT bpp) { |
| UINT i; | UINT i; |
| switch(bpp) { | switch(bpp) { |
| #if defined(SUPPORT_8BPP) | |
| case 8: | |
| break; | |
| #endif | |
| #if defined(SUPPORT_16BPP) | |
| case 16: | case 16: |
| for (i=0; i<pals; i++) { | for (i=0; i<pals; i++) { |
| dst[i].pal16 = dd2_get16pal(skbdwin.dd2hdl, src[i]); | dst[i].pal16 = dd2_get16pal(skbdwin.dd2hdl, src[i]); |
| } | } |
| break; | break; |
| #endif | |
| #if defined(SUPPORT_24BPP) | |
| case 24: | |
| #endif | |
| #if defined(SUPPORT_32BPP) | |
| case 32: | case 32: |
| #endif | |
| #if defined(SUPPORT_24BPP) || defined(SUPPORT_32BPP) | |
| for (i=0; i<pals; i++) { | for (i=0; i<pals; i++) { |
| dst[i].pal32.d = src[i].d; | dst[i].pal32.d = src[i].d; |
| } | } |
| break; | break; |
| #endif | |
| } | } |
| } | } |
| Line 473 static void skpaintmsg(HWND hWnd) { | Line 485 static void skpaintmsg(HWND hWnd) { |
| hdc = BeginPaint(hWnd, &ps); | hdc = BeginPaint(hWnd, &ps); |
| vram = dd2_bsurflock(skbdwin.dd2hdl); | vram = dd2_bsurflock(skbdwin.dd2hdl); |
| if (vram) { | if (vram) { |
| softkbd_paint(vram, skpalcnv); | softkbd_paint(vram, skpalcnv, TRUE); |
| dd2_bsurfunlock(skbdwin.dd2hdl); | dd2_bsurfunlock(skbdwin.dd2hdl); |
| dd2_blt(skbdwin.dd2hdl, NULL, &draw); | dd2_blt(skbdwin.dd2hdl, NULL, &draw); |
| } | } |