|
|
| version 1.5, 2004/04/06 18:41:00 | version 1.6, 2004/04/07 13:15:40 |
|---|---|
| Line 468 static void skpalcnv(CMNPAL *dst, const | Line 468 static void skpalcnv(CMNPAL *dst, const |
| } | } |
| } | } |
| static void skpaintmsg(HWND hWnd) { | static void skdrawkeys(HWND hWnd, BOOL redraw) { |
| HDC hdc; | |
| PAINTSTRUCT ps; | |
| RECT rect; | RECT rect; |
| RECT draw; | RECT draw; |
| CMNVRAM *vram; | CMNVRAM *vram; |
| TRACEOUT(("skpaintmsg")); | |
| GetClientRect(hWnd, &rect); | GetClientRect(hWnd, &rect); |
| draw.left = 0; | draw.left = 0; |
| draw.top = 0; | draw.top = 0; |
| draw.right = min(skbdwin.width, rect.right - rect.left); | draw.right = min(skbdwin.width, rect.right - rect.left); |
| draw.bottom = min(skbdwin.height, rect.bottom - rect.top); | draw.bottom = min(skbdwin.height, rect.bottom - rect.top); |
| hdc = BeginPaint(hWnd, &ps); | |
| vram = dd2_bsurflock(skbdwin.dd2hdl); | vram = dd2_bsurflock(skbdwin.dd2hdl); |
| if (vram) { | if (vram) { |
| softkbd_paint(vram, skpalcnv, TRUE); | softkbd_paint(vram, skpalcnv, redraw); |
| dd2_bsurfunlock(skbdwin.dd2hdl); | dd2_bsurfunlock(skbdwin.dd2hdl); |
| dd2_blt(skbdwin.dd2hdl, NULL, &draw); | dd2_blt(skbdwin.dd2hdl, NULL, &draw); |
| } | } |
| } | |
| static void skpaintmsg(HWND hWnd) { | |
| HDC hdc; | |
| PAINTSTRUCT ps; | |
| hdc = BeginPaint(hWnd, &ps); | |
| skdrawkeys(hWnd, TRUE); | |
| EndPaint(hWnd, &ps); | EndPaint(hWnd, &ps); |
| } | } |
| Line 662 HWND skbdwin_gethwnd(void) { | Line 667 HWND skbdwin_gethwnd(void) { |
| return(skbdwin.hwnd); | return(skbdwin.hwnd); |
| } | } |
| void skbdwin_process(void) { | |
| if ((skbdwin.hwnd) && (softkbd_process())) { | |
| skdrawkeys(skbdwin.hwnd, FALSE); | |
| } | |
| } | |
| void skbdwin_readini(void) { | void skbdwin_readini(void) { |
| char path[MAX_PATH]; | char path[MAX_PATH]; |