fix SatCom content offset on high resolution / small font size
parent
faa4eaae20
commit
117c72ba72
|
@ -11,6 +11,8 @@ Makefile
|
||||||
/src/libcolobotbase.a
|
/src/libcolobotbase.a
|
||||||
|
|
||||||
# Ignore the generated documentation
|
# Ignore the generated documentation
|
||||||
|
CMakeDoxyfile.in
|
||||||
|
CMakeDoxygenDefaults.cmake
|
||||||
/doc
|
/doc
|
||||||
/Doxyfile
|
/Doxyfile
|
||||||
|
|
||||||
|
|
|
@ -955,7 +955,7 @@ void CEdit::Draw()
|
||||||
|
|
||||||
if ( i >= m_lineFirst+m_lineVisible ) break;
|
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 )
|
if ( m_bAutoIndent )
|
||||||
{
|
{
|
||||||
const char *s = "\t"; // line | dotted
|
const char *s = "\t"; // line | dotted
|
||||||
|
@ -1117,7 +1117,7 @@ void CEdit::Draw()
|
||||||
{
|
{
|
||||||
if ( i == m_lineTotal-1 || m_cursor1 < m_lineOffset[i+1] )
|
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 )
|
if ( m_bAutoIndent )
|
||||||
{
|
{
|
||||||
pos.x += indentLength*m_lineIndent[i];
|
pos.x += indentLength*m_lineIndent[i];
|
||||||
|
|
Loading…
Reference in New Issue