Skip to content

Commit

Permalink
Merge branch 't/master/sequencestuff'
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersphinx committed May 14, 2011
2 parents be4a8e5 + 7a056bb commit 4d21048
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 162 deletions.
5 changes: 5 additions & 0 deletions lib/framework/wzapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ void WzMainWindow::resizeGL(int width, int height)
screenWidth = width;
screenHeight = height;

scaledFont.setFamily("DejaVu Sans");
scaledFont.setPixelSize(12 * height / 480);

glViewport(0, 0, width, height);
glMatrixMode(GL_PROJECTION);
glPushMatrix();
Expand Down Expand Up @@ -293,6 +296,8 @@ void WzMainWindow::setFontType(enum iV_fonts fontID)
case font_small:
setFont(smallFont);
break;
case font_scaled:
setFont(scaledFont);
default:
break;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/framework/wzapp.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class WzMainWindow : public QGLWidget
QCursor *cursors[CURSOR_MAX];
QTimer *timer;
QTime tickCount;
QFont regularFont, boldFont, smallFont;
QFont regularFont, boldFont, smallFont, scaledFont;
bool notReadyToPaint; ///< HACK Don't draw during initial show(), since some global variables apparently aren't set up.
static WzMainWindow *myself;

Expand Down
5 changes: 3 additions & 2 deletions lib/ivis_opengl/textdraw.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@

enum iV_fonts
{
font_regular,
font_large,
font_regular,
font_large,
font_small,
font_scaled,
};

extern void iV_TextInit(void);
Expand Down
Loading

0 comments on commit 4d21048

Please sign in to comment.