Ignore:
Timestamp:
Dec 27, 1999, 11:54:49 PM (26 years ago)
Author:
cbratschi
Message:

* empty log message *

File:
1 edited

Legend:

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

    r1849 r2221  
    1 /* $Id: oslibgdi.cpp,v 1.4 1999-11-26 17:06:07 cbratschi Exp $ */
     1/* $Id: oslibgdi.cpp,v 1.5 1999-12-27 22:53:52 cbratschi Exp $ */
    22/*
    33 * Window GDI wrapper functions for OS/2
     
    1616#include <stdlib.h>
    1717#include <string.h>
    18 
    1918#include <misc.h>
    2019#include <oslibgdi.h>
    2120#include <oslibwin.h>
     21
     22//CB: new mapping infrastructure to avoid transformation bugs -> available soon
     23
     24/*
     25All functions can be used to transform from Win32 to OS/2 and vice versa
     26First letter is lower case to avoid conflicts with Win32 API names
     27
     28Single y mapping:
     29 mapScreenY()
     30 mapWindowY()
     31
     32Single point mapping:
     33 mapScreenPoint()
     34 mapWindowPoint()
     35
     36Single rect mapping:
     37 mapScreenRect()
     38 mapWindowRect()
     39
     40Rect transformation:
     41 copyOS2Rect()
     42 copyWin32Rect()
     43*/
     44
     45INT mapScreenY(INT y)
     46{
     47  return WinQuerySysValue(HWND_DESKTOP,SV_CYSCREEN)-1-y;
     48}
     49//******************************************************************************
     50//******************************************************************************
     51INT mapScreenY(INT screenH,INT y)
     52{
     53  return screenH-1-y;
     54}
     55
    2256
    2357//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.