changeset 1059:2f79f183ff03

Windows was missing the flag to load the font from the LOGFONT struct when creating the font chooser.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 02 Jun 2011 21:48:16 +0000
parents fadb18121c56
children efa7d527adea
files win/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Thu Jun 02 21:42:46 2011 +0000
+++ b/win/dw.c	Thu Jun 02 21:48:16 2011 +0000
@@ -4122,7 +4122,7 @@
       lf = _get_logfont(currfont);
       
    cf.lStructSize = sizeof(cf);
-   cf.Flags = CF_SCREENFONTS;
+   cf.Flags = CF_SCREENFONTS | CF_INITTOLOGFONTSTRUCT;
    cf.lpLogFont = &lf;    
     
    if(ChooseFont(&cf))