2 ==============================================================================
4 This file is part of the async
5 Copyright 2005-10 by Satoshi Fujiwara.
7 async can be redistributed and/or modified under the terms of the
8 GNU General Public License, as published by the Free Software Foundation;
9 either version 2 of the License, or (at your option) any later version.
11 async is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with async; if not, visit www.gnu.org/licenses or write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 Boston, MA 02111-1307 USA
21 ==============================================================================
26 #define _CRTDBG_MAP_ALLOC
28 #define new new(_NORMAL_BLOCK, __FILE__, __LINE__)
30 #include "sf_windows.h"
41 dpi_x_ = GetDeviceCaps(hdc.get(), LOGPIXELSX);
42 dpi_y_ = GetDeviceCaps(hdc.get(), LOGPIXELSY);
43 ReleaseDC(NULL, hdc.get());