|
|
|
@ -71,7 +71,7 @@ OPENGL_GAL::OPENGL_GAL( GAL_DISPLAY_OPTIONS& aDisplayOptions, wxWindow* aParent, |
|
|
|
HIDPI_GL_CANVAS( aParent, wxID_ANY, (int*) glAttributes, wxDefaultPosition, wxDefaultSize, |
|
|
|
wxEXPAND, aName ), |
|
|
|
mouseListener( aMouseListener ), paintListener( aPaintListener ), currentManager( nullptr ), |
|
|
|
cachedManager( nullptr ), nonCachedManager( nullptr ), overlayManager( nullptr ) |
|
|
|
cachedManager( nullptr ), nonCachedManager( nullptr ), overlayManager( nullptr ), mainBuffer( 0 ), overlayBuffer( 0 ) |
|
|
|
{ |
|
|
|
if( glMainContext == NULL ) |
|
|
|
{ |
|
|
|
@ -1583,6 +1583,7 @@ int OPENGL_GAL::drawBitmapChar( unsigned long aChar ) |
|
|
|
if( aChar == ' ' ) |
|
|
|
{ |
|
|
|
const FONT_GLYPH_TYPE* g = LookupGlyph( 'x' ); |
|
|
|
wxASSERT( g ); |
|
|
|
Translate( VECTOR2D( g->advance, 0 ) ); |
|
|
|
return g->advance; |
|
|
|
} |
|
|
|
|