summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-07-10 16:13:26 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-07-10 16:13:26 +0000
commit229b07a3b913d0f93425249cbdb8da3aeaaf3b5f (patch)
treed88a28c51a991229a3a82ec20f93cc561a03e588 /legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
parent3c0a939785bf44968f59a4c3df2eadea529877a0 (diff)
Ecore_Evas: dpi_get() for Windows (XP and CE)
SVN revision: 73537
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
index 0976996f4c..fe0054af40 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
@@ -724,6 +724,25 @@ _ecore_evas_wince_fullscreen_set(Ecore_Evas *ee, int on)
724 } 724 }
725} 725}
726 726
727static void
728_ecore_evas_wince_screen_dpi_get(const Ecore_Evas *ee, int *xdpi, int *ydpi)
729{
730 HDC dc;
731
732 dc = GetDC(NULL);
733 if (!dc)
734 {
735 if (xdpi) *xdpi = 0;
736 if (ydpi) *ydpi = 0;
737 return;
738 }
739
740 if (xdpi) *xdpi = GetDeviceCaps(dc, LOGPIXELSX);
741 if (ydpi) *ydpi = GetDeviceCaps(dc, LOGPIXELSY);
742
743 ReleaseDC(NULL, dc);
744}
745
727static Ecore_Evas_Engine_Func _ecore_wince_engine_func = 746static Ecore_Evas_Engine_Func _ecore_wince_engine_func =
728{ 747{
729 _ecore_evas_wince_free, 748 _ecore_evas_wince_free,
@@ -783,7 +802,7 @@ static Ecore_Evas_Engine_Func _ecore_wince_engine_func =
783 802
784 NULL, // render 803 NULL, // render
785 NULL, // screen_geometry_get 804 NULL, // screen_geometry_get
786 NULL // screen_dpi_get 805 _ecore_evas_wince_screen_dpi_get
787}; 806};
788 807
789/* API */ 808/* API */