Diff for /np2/win9x/subwind.cpp between versions 1.4 and 1.6

version 1.4, 2004/03/26 06:47:11 version 1.6, 2004/04/07 13:15:40
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;
   
Line 468  static void skpalcnv(CMNPAL *dst, RGB32  Line 468  static void skpalcnv(CMNPAL *dst, RGB32 
         }          }
 }  }
   
 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);                  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];

Removed from v.1.4  
changed lines
  Added in v.1.6


RetroPC.NET-CVS <cvs@retropc.net>