Changeset 2049 for trunk/src/gdi32/oslibgdi.cpp
- Timestamp:
- Dec 9, 1999, 5:49:45 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/oslibgdi.cpp
r1095 r2049 1 /* $Id: oslibgdi.cpp,v 1. 1 1999-10-01 10:14:59 sandervlExp $ */1 /* $Id: oslibgdi.cpp,v 1.2 1999-12-09 16:49:45 cbratschi Exp $ */ 2 2 3 3 /* … … 11 11 #define INCL_GPI 12 12 #define INCL_WIN 13 #include <os2wrap.h> 13 #include <os2wrap.h> //Odin32 OS/2 api wrappers 14 14 #include <stdlib.h> 15 15 #include <string.h> … … 22 22 //****************************************************************************** 23 23 //****************************************************************************** 24 INT OSLibSetDIBitsToDevice(HDC hdc, INT xDest, INT yDest, DWORD cx, DWORD cy, 25 INT xSrc, INT ySrc, UINT startscan, UINT lines, 26 LPCVOID bits, WINBITMAPINFOHEADER *info, 24 INT OSLibSetDIBitsToDevice(HDC hdc, INT xDest, INT yDest, DWORD cx, DWORD cy, 25 INT xSrc, INT ySrc, UINT startscan, UINT lines, 26 LPCVOID bits, WINBITMAPINFOHEADER *info, 27 27 UINT coloruse) 28 28 { … … 56 56 descr.gc = physDev->gc; 57 57 descr.xSrc = xSrc; 58 descr.ySrc = tmpheight >= 0 ? lines-(ySrc-startscan)-cy+(oldcy-cy) 58 descr.ySrc = tmpheight >= 0 ? lines-(ySrc-startscan)-cy+(oldcy-cy) 59 59 : ySrc - startscan; 60 60 descr.xDest = dc->w.DCOrgX + XLPTODP( dc, xDest ); … … 77 77 GpiDrawBits((HPS)hdc, (VOID *)bits, (BITMAPINFO2 *)info, 4, 78 78 points, ROP_SRCCOPY, BBO_IGNORE); 79 79 80 80 return lines; 81 81 } 82 82 //****************************************************************************** 83 83 //****************************************************************************** 84
Note:
See TracChangeset
for help on using the changeset viewer.