salvd.cxx (9f62ea84) | salvd.cxx (fc9fd3f1) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22 23 24#include <string.h> 25 26#include <svpm.h> 27 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22 23 24#include <string.h> 25 26#include <svpm.h> 27 |
28#include <tools/svwin.h> 29 30#include <vcl/sysdata.hxx> 31 32#include <os2/saldata.hxx> 33#include <os2/salinst.h> 34#include <os2/salgdi.h> 35#include <os2/salvd.h> 36 37/* |
|
28#define _SV_SALVD_CXX 29#include <saldata.hxx> 30#include <salinst.h> 31#include <salgdi.h> 32#include <salvd.h> | 38#define _SV_SALVD_CXX 39#include <saldata.hxx> 40#include <salinst.h> 41#include <salgdi.h> 42#include <salvd.h> |
43*/ |
|
33 34#ifndef __H_FT2LIB | 44 45#ifndef __H_FT2LIB |
35#include <wingdi.h> | 46#include <os2/wingdi.h> |
36#include <ft2lib.h> 37#endif 38 39// ======================================================================= 40 41HBITMAP ImplCreateVirDevBitmap( HDC hDC, HPS hPS, long nDX, long nDY, 42 USHORT nBitCount ) 43{ --- 123 unchanged lines hidden (view full) --- 167 168void Os2SalVirtualDevice::ReleaseGraphics( SalGraphics* ) 169{ 170 mbGraphics = FALSE; 171} 172 173// ----------------------------------------------------------------------- 174 | 47#include <ft2lib.h> 48#endif 49 50// ======================================================================= 51 52HBITMAP ImplCreateVirDevBitmap( HDC hDC, HPS hPS, long nDX, long nDY, 53 USHORT nBitCount ) 54{ --- 123 unchanged lines hidden (view full) --- 178 179void Os2SalVirtualDevice::ReleaseGraphics( SalGraphics* ) 180{ 181 mbGraphics = FALSE; 182} 183 184// ----------------------------------------------------------------------- 185 |
175BOOL Os2SalVirtualDevice::SetSize( long nDX, long nDY ) | 186sal_Bool Os2SalVirtualDevice::SetSize( long nDX, long nDY ) |
176{ 177 HBITMAP hNewBmp = ImplCreateVirDevBitmap( mhDC, 178 mhPS, nDX, nDY, 179 mnBitCount ); 180 if ( hNewBmp ) 181 { 182 Ft2SetBitmap( mhPS, hNewBmp ); 183 GpiDeleteBitmap( mhBmp ); --- 13 unchanged lines hidden --- | 187{ 188 HBITMAP hNewBmp = ImplCreateVirDevBitmap( mhDC, 189 mhPS, nDX, nDY, 190 mnBitCount ); 191 if ( hNewBmp ) 192 { 193 Ft2SetBitmap( mhPS, hNewBmp ); 194 GpiDeleteBitmap( mhBmp ); --- 13 unchanged lines hidden --- |