Ignore:
Timestamp:
Dec 9, 1999, 5:49:45 PM (26 years ago)
Author:
cbratschi
Message:

fixed TextOut, ExtTextOut bugs

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 sandervl Exp $ */
     1/* $Id: oslibgdi.cpp,v 1.2 1999-12-09 16:49:45 cbratschi Exp $ */
    22
    33/*
     
    1111#define  INCL_GPI
    1212#define  INCL_WIN
    13 #include <os2wrap.h>    //Odin32 OS/2 api wrappers
     13#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    1414#include <stdlib.h>
    1515#include <string.h>
     
    2222//******************************************************************************
    2323//******************************************************************************
    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, 
     24INT 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,
    2727                           UINT coloruse)
    2828{
     
    5656    descr.gc        = physDev->gc;
    5757    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)
    5959                                     : ySrc - startscan;
    6060    descr.xDest     = dc->w.DCOrgX + XLPTODP( dc, xDest );
     
    7777  GpiDrawBits((HPS)hdc, (VOID *)bits, (BITMAPINFO2 *)info, 4,
    7878              points, ROP_SRCCOPY, BBO_IGNORE);
    79  
     79
    8080  return lines;
    8181}
    8282//******************************************************************************
    8383//******************************************************************************
     84
Note: See TracChangeset for help on using the changeset viewer.