comparison src/objects-msw.c @ 249:83b3d10dcba9 r20-5b23

Import from CVS: tag r20-5b23
author cvs
date Mon, 13 Aug 2007 10:19:09 +0200
parents 51092a27c943
children 677f6a0ee643
comparison
equal deleted inserted replaced
248:ad40ac2754d8 249:83b3d10dcba9
1048 return 0; 1048 return 0;
1049 } 1049 }
1050 GetTextMetrics(hdc, &metrics); 1050 GetTextMetrics(hdc, &metrics);
1051 SelectObject(hdc, holdfont); 1051 SelectObject(hdc, holdfont);
1052 ReleaseDC(hwnd, hdc); 1052 ReleaseDC(hwnd, hdc);
1053 f->width = metrics.tmAveCharWidth; 1053 f->width = (unsigned short) metrics.tmAveCharWidth;
1054 f->height = metrics.tmHeight; 1054 f->height = (unsigned short) metrics.tmHeight;
1055 f->ascent = metrics.tmAscent; 1055 f->ascent = (unsigned short) metrics.tmAscent;
1056 f->descent = metrics.tmDescent; 1056 f->descent = (unsigned short) metrics.tmDescent;
1057 f->proportional_p = (metrics.tmPitchAndFamily & TMPF_FIXED_PITCH); 1057 f->proportional_p = (metrics.tmPitchAndFamily & TMPF_FIXED_PITCH);
1058 } 1058 }
1059 1059
1060 return 1; 1060 return 1;
1061 } 1061 }