Diff for /np2/win9x/toolwin.cpp between versions 1.19 and 1.21

version 1.19, 2005/03/20 13:12:49 version 1.21, 2006/12/24 00:52:30
Line 197  static void calctextsize(OEMCHAR *path,  Line 197  static void calctextsize(OEMCHAR *path, 
         GetTextExtentPoint32(hdc, work, OEMSTRLEN(work), &tail);          GetTextExtentPoint32(hdc, work, OEMSTRLEN(work), &tail);
         pos = 0;          pos = 0;
         while(pos < l) {          while(pos < l) {
                 step = ((((p[pos] ^ 0x20) - 0xa1) & 0xff) < 0x3c)?2:1;  #if defined(_UNICODE)
                   step = 1;
   #else
                   step = (IsDBCSLeadByte((BYTE)p[pos]))?2:1;
   #endif
                 GetTextExtentPoint32(hdc, p, pos + step, &cur);                  GetTextExtentPoint32(hdc, p, pos + step, &cur);
                 if (cur.cx + tail.cx >= width) {                  if (cur.cx + tail.cx >= width) {
                         break;                          break;
Line 460  static void toolwincreate(HWND hWnd) { Line 464  static void toolwincreate(HWND hWnd) {
                 toolwin.sub[i] = sub;                  toolwin.sub[i] = sub;
                 toolwin.subproc[i] = NULL;                  toolwin.subproc[i] = NULL;
                 if (sub) {                  if (sub) {
                         toolwin.subproc[i] = (SUBCLASSPROC)GetWindowLong(sub, GWL_WNDPROC);                          toolwin.subproc[i] = GetWindowProc(sub);
                         SetWindowLong(sub, GWL_WNDPROC, (LONG)twsub);                          SetWindowProc(sub, twsub);
                         SendMessage(sub, WM_SETFONT, (WPARAM)toolwin.hfont,                          SendMessage(sub, WM_SETFONT, (WPARAM)toolwin.hfont,
                                                                                                                 MAKELPARAM(TRUE, 0));                                                                                                                  MAKELPARAM(TRUE, 0));
                 }                  }

Removed from v.1.19  
changed lines
  Added in v.1.21


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