| salvd.cxx (fc9fd3f1) | salvd.cxx (906a4e93) |
|---|---|
| 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 --- 188 unchanged lines hidden (view full) --- 197 return TRUE; 198 } 199 else 200 return FALSE; 201} 202 203void Os2SalVirtualDevice::GetSize( long& rWidth, long& rHeight ) 204{ | 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 --- 188 unchanged lines hidden (view full) --- 197 return TRUE; 198 } 199 else 200 return FALSE; 201} 202 203void Os2SalVirtualDevice::GetSize( long& rWidth, long& rHeight ) 204{ |
| 205 DevQueryCaps( mpGraphics->mhDC, CAPS_WIDTH, CAPS_WIDTH, (LONG*)rWidth ); 206 DevQueryCaps( mpGraphics->mhDC, CAPS_HEIGHT, CAPS_HEIGHT, (LONG*)rHeight ); | 205 LONG alData; 206 DevQueryCaps( mpGraphics->mhDC, CAPS_WIDTH, 1L, &alData); 207 rWidth = alData; 208 DevQueryCaps( mpGraphics->mhDC, CAPS_HEIGHT, 1L, &alData); 209 rHeight = alData; |
| 207} | 210} |