*** empty log message ***

svn path=/trunk/boinc/; revision=2462
This commit is contained in:
Oliver Wang 2003-10-14 23:04:43 +00:00
parent 3ebef2da78
commit c04134927e
2 changed files with 13 additions and 1 deletions

View File

@ -383,7 +383,7 @@ void SetupPixelFormat(HDC hDC)
// good to go.
}
GLYPHMETRICSFLOAT gmf[256];
float txt_widths[256];
unsigned int MyCreateFont(char *fontName, int Size, int weight) {
// windows font
@ -416,5 +416,15 @@ unsigned int MyCreateFont(char *fontName, int Size, int weight) {
#if 0
wglUseFontOutlines(hDC,0,255,mylistbase,0.0f,0.2f,WGL_FONT_POLYGONS,gmf);
#endif
TEXTMETRIC met;
GetTextMetrics(myhDC,&met);
GetCharWidthFloat(myhDC,met.tmFirstChar,met.tmLastChar,txt_widths);
return mylistbase;
}
float get_char_width(unsigned char c)
{
return txt_widths[c];
}

View File

@ -6763,8 +6763,10 @@ David Oct 14 2003
Oliver Oct 14 2003
- stars now draw in visible pyramid with original coordinate system
- axis draws vertices in correct CCW order
- added font width function
api/
gutil.C,h
reduce.c
windows_opengl.C