Ignore:
Timestamp:
May 25, 2001, 6:59:11 PM (24 years ago)
Author:
sandervl
Message:

negative dialog control origin bugfix

File:
1 edited

Legend:

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

    r5796 r5802  
    1 /* $Id: win32dlg.cpp,v 1.64 2001-05-24 19:27:00 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.65 2001-05-25 16:59:11 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    3232
    3333#define DEFAULT_DLGFONT "9.WarpSans"
     34
     35#define GET_SHORT(ptr)     (*(SHORT *)(ptr))
    3436
    3537//******************************************************************************
     
    532534    }
    533535    result->nbItems = GET_WORD(p); p++;
    534     result->x       = GET_WORD(p); p++;
    535     result->y       = GET_WORD(p); p++;
     536    //x & y are signed words
     537    result->x       = GET_SHORT(p); p++;
     538    result->y       = GET_SHORT(p); p++;
    536539    result->cx      = GET_WORD(p); p++;
    537540    result->cy      = GET_WORD(p); p++;
     
    620623        info->exStyle = GET_DWORD(p); p += 2;
    621624    }
    622     info->x       = GET_WORD(p); p++;
    623     info->y       = GET_WORD(p); p++;
     625    //x & y are signed words (VirtualPC Settings dailog)
     626    info->x       = GET_SHORT(p); p++;
     627    info->y       = GET_SHORT(p); p++;
    624628    info->cx      = GET_WORD(p); p++;
    625629    info->cy      = GET_WORD(p); p++;
Note: See TracChangeset for help on using the changeset viewer.