diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-11-29 22:14:36 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-02 08:34:52 +0100 |
commit | c31ed7004dfb3e8e37ddeb9fddf0f015b661dd12 (patch) | |
tree | 48d3069604bc35122347b6d346649c84f84ef67c /vcl/win/source | |
parent | c22d5338fad383800b35efa458561bb89b604922 (diff) |
vcl: create a GeometryProvider interface.
Implemented by both SalFrame and SalVirtualDevice, to help us to
un-tangle code that needs to operate on resources associated with
both of these without special cases.
Change-Id: If681a002647e20c57186577fe039d4ac85bba872
Diffstat (limited to 'vcl/win/source')
-rw-r--r-- | vcl/win/source/gdi/salvd.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/win/source/gdi/salvd.cxx b/vcl/win/source/gdi/salvd.cxx index b5986b1b6056..cea8a768a36b 100644 --- a/vcl/win/source/gdi/salvd.cxx +++ b/vcl/win/source/gdi/salvd.cxx @@ -115,6 +115,8 @@ SalVirtualDevice* WinSalInstance::CreateVirtualDevice( SalGraphics* pSGraphics, } pVirGraphics->InitGraphics(); + mnWidth = nDX; + mnHeight = nDY; pVDev->setHDC(hDC); pVDev->mhBmp = hBmp; if( hBmp ) @@ -152,6 +154,8 @@ WinSalVirtualDevice::WinSalVirtualDevice() mnBitCount = 0; // BitCount (0 or 1) mbGraphics = FALSE; // is Graphics used mbForeignDC = FALSE; // uses a foreign DC instead of a bitmap + mnWidth = 0; + mnHeight = 0; } WinSalVirtualDevice::~WinSalVirtualDevice() |