Ignore:
Timestamp:
Jan 21, 2004, 1:16:14 PM (22 years ago)
Author:
sandervl
Message:

DrawIconEx: handle cyWidth == 0 case correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/uitools.cpp

    r9795 r10416  
    1 /* $Id: uitools.cpp,v 1.35 2003-02-13 12:44:53 sandervl Exp $ */
     1/* $Id: uitools.cpp,v 1.36 2004-01-21 12:16:14 sandervl Exp $ */
    22/*
    33 * User Interface Functions
     
    17241724    cxWidth = GetSystemMetrics(SM_CXICON);
    17251725    cyWidth = GetSystemMetrics(SM_CYICON);
    1726   } else if (cxWidth == 0)
     1726  }
     1727  else
    17271728  {
    1728     cxWidth = bmp.bmWidth;
    1729   } else if (cyWidth == 0)
    1730   {
    1731     cyWidth = ii.hbmColor ? bmp.bmHeight:bmp.bmHeight/2;
     1729      if (cxWidth == 0)
     1730      {
     1731        cxWidth = bmp.bmWidth;
     1732      }
     1733      if (cyWidth == 0)
     1734      {
     1735        cyWidth = ii.hbmColor ? bmp.bmHeight:bmp.bmHeight/2;
     1736      }
    17321737  }
    17331738
Note: See TracChangeset for help on using the changeset viewer.