comparison win/dw.c @ 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 6919854298fd
children efa7d527adea
comparison
equal deleted inserted replaced
1058:fadb18121c56 1059:2f79f183ff03
4120 4120
4121 if(currfont && *currfont) 4121 if(currfont && *currfont)
4122 lf = _get_logfont(currfont); 4122 lf = _get_logfont(currfont);
4123 4123
4124 cf.lStructSize = sizeof(cf); 4124 cf.lStructSize = sizeof(cf);
4125 cf.Flags = CF_SCREENFONTS; 4125 cf.Flags = CF_SCREENFONTS | CF_INITTOLOGFONTSTRUCT;
4126 cf.lpLogFont = &lf; 4126 cf.lpLogFont = &lf;
4127 4127
4128 if(ChooseFont(&cf)) 4128 if(ChooseFont(&cf))
4129 { 4129 {
4130 str = (char *)malloc( 100 ); 4130 str = (char *)malloc( 100 );