}
}
+static void
+_ecore_evas_win32_screen_dpi_get(const Ecore_Evas *ee, int *xdpi, int *ydpi)
+{
+ HDC dc;
+
+ dc = GetDC(NULL);
+ if (!dc)
+ {
+ if (xdpi) *xdpi = 0;
+ if (ydpi) *ydpi = 0;
+ return;
+ }
+
+ if (xdpi) *xdpi = GetDeviceCaps(dc, LOGPIXELSX);
+ if (ydpi) *ydpi = GetDeviceCaps(dc, LOGPIXELSY);
+
+ ReleaseDC(NULL, dc);
+}
static Ecore_Evas_Engine_Func _ecore_win32_engine_func =
{
NULL,
NULL, // render
- NULL, //screen_geometry_get
- NULL // screen_dpi_get
+ NULL, // screen_geometry_get
+ _ecore_evas_win32_screen_dpi_get
};
#endif /* BUILD_ECORE_EVAS_WIN32 */
}
}
+static void
+_ecore_evas_wince_screen_dpi_get(const Ecore_Evas *ee, int *xdpi, int *ydpi)
+{
+ HDC dc;
+
+ dc = GetDC(NULL);
+ if (!dc)
+ {
+ if (xdpi) *xdpi = 0;
+ if (ydpi) *ydpi = 0;
+ return;
+ }
+
+ if (xdpi) *xdpi = GetDeviceCaps(dc, LOGPIXELSX);
+ if (ydpi) *ydpi = GetDeviceCaps(dc, LOGPIXELSY);
+
+ ReleaseDC(NULL, dc);
+}
+
static Ecore_Evas_Engine_Func _ecore_wince_engine_func =
{
_ecore_evas_wince_free,
NULL, // render
NULL, // screen_geometry_get
- NULL // screen_dpi_get
+ _ecore_evas_wince_screen_dpi_get
};
/* API */