Changeset 21962 for trunk/src


Ignore:
Timestamp:
Feb 6, 2012, 12:33:53 PM (14 years ago)
Author:
dmik
Message:

Remove debug statements.

Strange, but this got accidentally committed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/menu.c

    r21961 r21962  
    10341034    maxX = (TWEAK_WineLook == WIN31_LOOK) ? GetSystemMetrics(SM_CXBORDER) : 2+1 ;
    10351035
    1036     dprintf(("*** 1 lppop->nItems %d", lppop->nItems));
    10371036    while (start < lppop->nItems)
    10381037    {
    1039         lpitem = &lppop->items[start];
    1040         dprintf(("*** 1 lpitem=%x %x [%S] %x", lpitem, lpitem->fType, lpitem->text, lpitem->hSubMenu));
    1041         orgX = maxX;
    1042         orgY = (TWEAK_WineLook == WIN31_LOOK) ? GetSystemMetrics(SM_CYBORDER) : 2;
    1043 
    1044         maxTab = maxTabWidth = 0;
    1045 
    1046         /* Parse items until column break or end of menu */
    1047         for (i = start; i < lppop->nItems; i++, lpitem++)
    1048         {
    1049             if ((i != start) &&
    1050                 (lpitem->fType & (MF_MENUBREAK | MF_MENUBARBREAK))) break;
    1051 
    1052             dprintf(("*** 2 lpitem=%x %x [%S] %x", lpitem, lpitem->fType, lpitem->text, lpitem->hSubMenu));
    1053             MENU_CalcItemSize( hdc, lpitem, hwndOwner, orgX, orgY, FALSE );
    1054             dprintf(("*** 2 rect %d %d %d %d", lpitem->rect.left, lpitem->rect.top, lpitem->rect.right, lpitem->rect.bottom));
    1055 
    1056             if (lpitem->fType & MF_MENUBARBREAK) orgX++;
    1057             maxX = max( maxX, lpitem->rect.right );
    1058             orgY = lpitem->rect.bottom;
    1059             if (IS_STRING_ITEM(lpitem->fType) && lpitem->xTab)
    1060             {
    1061                 maxTab = max( maxTab, lpitem->xTab );
    1062                 maxTabWidth = max(maxTabWidth,lpitem->rect.right-lpitem->xTab);
    1063             }
    1064         }
    1065 
    1066         /* Finish the column (set all items to the largest width found) */
    1067         maxX = max( maxX, maxTab + maxTabWidth );
    1068         for (lpitem = &lppop->items[start]; start < i; start++, lpitem++)
    1069         {
    1070             lpitem->rect.right = maxX;
    1071             if (IS_STRING_ITEM(lpitem->fType) && lpitem->xTab)
    1072                 lpitem->xTab = maxTab;
    1073 
    1074         }
    1075         lppop->Height = max( lppop->Height, orgY );
     1038    lpitem = &lppop->items[start];
     1039    orgX = maxX;
     1040    orgY = (TWEAK_WineLook == WIN31_LOOK) ? GetSystemMetrics(SM_CYBORDER) : 2;
     1041
     1042    maxTab = maxTabWidth = 0;
     1043
     1044      /* Parse items until column break or end of menu */
     1045    for (i = start; i < lppop->nItems; i++, lpitem++)
     1046    {
     1047        if ((i != start) &&
     1048        (lpitem->fType & (MF_MENUBREAK | MF_MENUBARBREAK))) break;
     1049
     1050        MENU_CalcItemSize( hdc, lpitem, hwndOwner, orgX, orgY, FALSE );
     1051
     1052        if (lpitem->fType & MF_MENUBARBREAK) orgX++;
     1053        maxX = max( maxX, lpitem->rect.right );
     1054        orgY = lpitem->rect.bottom;
     1055        if (IS_STRING_ITEM(lpitem->fType) && lpitem->xTab)
     1056        {
     1057        maxTab = max( maxTab, lpitem->xTab );
     1058        maxTabWidth = max(maxTabWidth,lpitem->rect.right-lpitem->xTab);
     1059        }
     1060    }
     1061
     1062      /* Finish the column (set all items to the largest width found) */
     1063    maxX = max( maxX, maxTab + maxTabWidth );
     1064    for (lpitem = &lppop->items[start]; start < i; start++, lpitem++)
     1065    {
     1066        lpitem->rect.right = maxX;
     1067        if (IS_STRING_ITEM(lpitem->fType) && lpitem->xTab)
     1068        lpitem->xTab = maxTab;
     1069
     1070    }
     1071    lppop->Height = max( lppop->Height, orgY );
    10761072    }
    10771073
     
    10811077    if(TWEAK_WineLook > WIN31_LOOK)
    10821078    {
    1083         lppop->Height += 2;
    1084         lppop->Width += 2;
    1085     }
    1086 
    1087     dprintf(("*** 1 lppop->Height %d", lppop->Height));
    1088     dprintf(("*** 1 lppop->Width  %d", lppop->Width));
     1079    lppop->Height += 2;
     1080    lppop->Width += 2;
     1081    }
    10891082
    10901083#ifdef __WIN32OS2__
     
    46954688                                const MENUITEMINFOW *lpmii)
    46964689{
    4697     dprintf(("*** InsertMenuItem: %d %x %x [%S]", uItem, lpmii->fMask, lpmii->fType, lpmii->fType == MFT_STRING ? lpmii->dwTypeData : 0));
    4698 
    46994690    // In the latest Win versions (2000+?) MIIM_TYPE is superceded by separate
    47004691    // MIIM_BITMAP, MIIM_FTYPE, and MIIM_STRING flags. However, the old Wine
     
    47104701
    47114702    MENUITEM *item = MENU_InsertItem(hMenu, uItem, bypos ? MF_BYPOSITION : 0 );
    4712     dprintf(("*** InsertMenuItem 1: lpitem=%x %x [%S] %x", item, item->fType, item->text, item->hSubMenu));
    4713 
    4714     BOOL b = SetMenuItemInfo_common(item, lpmii, TRUE);
    4715     dprintf(("*** InsertMenuItem 2: lpitem=%x %x [%S] %x", item, item->fType, item->text, item->hSubMenu));
    4716     return b;
     4703    return SetMenuItemInfo_common(item, lpmii, TRUE);
    47174704}
    47184705
Note: See TracChangeset for help on using the changeset viewer.