changeset 1231:4a7a9f102a5f

Fix for dw_font_text_extents_get() not on Windows honoring the font set with dw_pixmap_set_font().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 16 Oct 2011 19:26:10 +0000
parents 75a773cdb626
children db21c0081387
files win/dw.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Sun Oct 16 19:12:53 2011 +0000
+++ b/win/dw.c	Sun Oct 16 19:26:10 2011 +0000
@@ -8641,6 +8641,11 @@
    else
       return;
 
+   if(pixmap && pixmap->font)
+   {
+       hFont = pixmap->font;
+   }
+   else
    {
       ColorInfo *cinfo;