Changeset 6317 for trunk/src


Ignore:
Timestamp:
Jul 13, 2001, 4:31:39 PM (24 years ago)
Author:
sandervl
Message:

remove wrong check for negative x & y coordinates during window creation

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r6173 r6317  
    1 /* $Id: win32wbase.cpp,v 1.275 2001-07-05 10:45:25 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.276 2001-07-13 14:31:15 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    410410    if (fXDefault && !fCXDefault) fXDefault = FALSE; //CB: only x positioning doesn't work (calc.exe,cdrlabel.exe)
    411411
    412     if (cs->x < 0) cs->x = 0;
    413     if (cs->y < 0) cs->y = 0;
    414 
    415412    //Allocate window words
    416413    nrUserWindowBytes = windowClass->getExtraWndBytes();
  • trunk/src/user32/windowclass.cpp

    r5935 r6317  
    1 /* $Id: windowclass.cpp,v 1.21 2001-06-09 14:50:26 sandervl Exp $ */
     1/* $Id: windowclass.cpp,v 1.22 2001-07-13 14:31:39 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Code for OS/2
     
    6868    int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
    6969
    70     wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
    71                            LR_COPYFROMRESOURCE);
     70    if(wc.hIcon)
     71        wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
     72                               LR_COPYFROMRESOURCE);
    7273
    7374    wclass = new Win32WndClass(&wc,FALSE);
     
    138139    int iSmIconHeight = GetSystemMetrics(SM_CYSMICON);
    139140
    140     wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
    141                            LR_COPYFROMRESOURCE);
     141    if(wc.hIcon)
     142        wc.hIconSm = CopyImage(wc.hIcon, IMAGE_ICON, iSmIconWidth, iSmIconHeight,
     143                               LR_COPYFROMRESOURCE);
    142144
    143145    dprintf(("RegisterClassW"));
Note: See TracChangeset for help on using the changeset viewer.