fix font display by moving characters more away from the screen edge (fixes a small overlap)
This commit is contained in:
parent
3cd914c5e1
commit
c68e337af0
|
|
@ -1849,8 +1849,8 @@ void XYWnd::XY_DrawGrid(void) {
|
|||
// draw coordinate text if needed
|
||||
if ( g_xywindow_globals_private.show_coordinates) {
|
||||
glColor4fv(vector4_to_array(Vector4(g_xywindow_globals.color_gridtext, 1.0f)));
|
||||
float offx = m_vOrigin[nDim2] + h - (1 + GlobalOpenGL().m_font->getPixelAscent()) / m_fScale;
|
||||
float offy = m_vOrigin[nDim1] - w + 1 / m_fScale;
|
||||
float offx = m_vOrigin[nDim2] + h - (4 + GlobalOpenGL().m_font->getPixelAscent()) / m_fScale;
|
||||
float offy = m_vOrigin[nDim1] - w + 4 / m_fScale;
|
||||
for (x = xb - fmod(xb, stepx); x <= xe ; x += stepx) {
|
||||
glRasterPos2f (x, offx);
|
||||
sprintf (text, "%g", x);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user