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