fix SatCom content offset on high resolution / small font size

fix-squashed-planets
nipsufn 2021-09-29 15:26:19 +02:00
parent faa4eaae20
commit 117c72ba72
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -11,6 +11,8 @@ Makefile
/src/libcolobotbase.a
# Ignore the generated documentation
CMakeDoxyfile.in
CMakeDoxygenDefaults.cmake
/doc
/Doxyfile

View File

@ -955,7 +955,7 @@ void CEdit::Draw()
if ( i >= m_lineFirst+m_lineVisible ) break;
pos.x = m_pos.x+(7.5f/640.0f)*(m_fontSize/Gfx::FONT_SIZE_SMALL);
pos.x = m_pos.x+(7.5f/640.0f);
if ( m_bAutoIndent )
{
const char *s = "\t"; // line | dotted
@ -1117,7 +1117,7 @@ void CEdit::Draw()
{
if ( i == m_lineTotal-1 || m_cursor1 < m_lineOffset[i+1] )
{
pos.x = m_pos.x+(7.5f/640.0f)*(m_fontSize/Gfx::FONT_SIZE_SMALL);
pos.x = m_pos.x+(7.5f/640.0f);
if ( m_bAutoIndent )
{
pos.x += indentLength*m_lineIndent[i];