diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-03-29 10:30:26 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-03-29 10:30:26 +0000 |
commit | eef00dcadde25a938d13684ff0fb48da7a73b6d0 (patch) | |
tree | 97b0ced8c8df52210f111a33493a30d87a34c6f2 /vcl/win/source/gdi/salvd.cxx | |
parent | 650b7d15b84123256b2ccf1dc7116589ba7344d6 (diff) |
INTEGRATION: CWS vcl54 (1.8.86); FILE MERGED
2006/02/23 17:25:08 thb 1.8.86.1: #i59315# Now reading the actual size of a SystemGraphicsData-generated VDev from the VDev itself (it was always (1,1) before, which led to clipped output)
Diffstat (limited to 'vcl/win/source/gdi/salvd.cxx')
-rw-r--r-- | vcl/win/source/gdi/salvd.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vcl/win/source/gdi/salvd.cxx b/vcl/win/source/gdi/salvd.cxx index 892be519634b..ea2f8e9f5b16 100644 --- a/vcl/win/source/gdi/salvd.cxx +++ b/vcl/win/source/gdi/salvd.cxx @@ -4,9 +4,9 @@ * * $RCSfile: salvd.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: obo $ $Date: 2006-03-22 10:24:25 $ + * last change: $Author: obo $ $Date: 2006-03-29 11:30:26 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -245,3 +245,9 @@ BOOL WinSalVirtualDevice::SetSize( long nDX, long nDY ) } } } + +void WinSalVirtualDevice::GetSize( long& rWidth, long& rHeight ) +{ + rWidth = GetDeviceCaps( mhDC, HORZRES ); + rHeight= GetDeviceCaps( mhDC, VERTRES ); +} |