0ad/source/graphics
trompetin17 b71cd96d12
Fix exceeding input boundaries in console
After 734386ce9f the new font system calculate height and cap height,
previously was having some magic number. Now we are using cap height
divide 2 to give a more nice space.

Remove an extra pixel in the buffer and improves background color for
better reading and eye care.

This also support the change console font option added in d549cbeeaa

Fixes: #8351
(cherry picked from commit 8e820a988e)
Signed-off-by: phosit <phosit@autistici.org>
2026-01-01 16:08:45 +01:00
..
scripting Fix some includes all over the place 2025-08-14 20:15:30 +02:00
tests Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
Camera.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
Camera.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
CameraController.cpp Fix some includes all over the place 2025-08-14 20:15:30 +02:00
CameraController.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
Canvas2D.cpp Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
Canvas2D.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
CinemaManager.cpp Fix some includes all over the place 2025-08-13 19:38:21 +02:00
CinemaManager.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
ColladaManager.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
ColladaManager.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
Color.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
Color.h Convert span with dynamic extent to static extent 2025-08-24 11:09:57 +02:00
Decal.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
Decal.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
Entity.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
Font.cpp Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
Font.h Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
FontManager.cpp Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
FontManager.h Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
FontMetrics.cpp Fix exceeding input boundaries in console 2026-01-01 16:08:45 +01:00
FontMetrics.h Fix exceeding input boundaries in console 2026-01-01 16:08:45 +01:00
GameView.cpp Makes loading terrain textures more smooth 2025-10-13 00:14:45 +02:00
GameView.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
HeightMipmap.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
HeightMipmap.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
HFTracer.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
HFTracer.h Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
ICameraController.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
ICameraController.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
LightEnv.cpp Removes USE_FOG define and switches to a shader parameter. 2025-10-11 08:11:35 +02:00
LightEnv.h Removes USE_FOG define and switches to a shader parameter. 2025-10-11 08:11:35 +02:00
LOSTexture.cpp Remove custom span and use std::span 2025-08-24 11:09:57 +02:00
LOSTexture.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
MapGenerator.cpp Fix some includes all over the place 2025-08-14 20:15:30 +02:00
MapGenerator.h Remove ScriptTypes and ScriptExtraHeaders headers 2025-09-14 13:17:18 +02:00
MapIO.cpp Fixes lseek for big files on Windows 2025-10-26 15:06:35 +01:00
MapIO.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
MapReader.cpp Makes parsing entities more smooth 2025-10-13 00:14:29 +02:00
MapReader.h Makes parsing entities more smooth 2025-10-13 00:14:29 +02:00
MapWriter.cpp Fix some includes all over the place 2025-08-14 20:15:30 +02:00
MapWriter.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
Material.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
Material.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
MaterialManager.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
MaterialManager.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
MeshManager.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
MeshManager.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
MiniMapTexture.cpp Restores minimap entities size and adds options. 2025-10-05 12:04:21 +02:00
MiniMapTexture.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
MiniPatch.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
MiniPatch.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Model.cpp Fix some includes all over the place 2025-08-14 20:15:30 +02:00
Model.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
ModelAbstract.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
ModelAbstract.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
ModelDef.cpp Remove custom span and use std::span 2025-08-24 11:09:57 +02:00
ModelDef.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
ModelDummy.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
ObjectBase.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
ObjectBase.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
ObjectEntry.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
ObjectEntry.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
ObjectManager.cpp Fix some includes all over the place 2025-08-14 20:15:30 +02:00
ObjectManager.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
Overlay.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
Overlay.h Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
ParticleEmitter.cpp Removes USE_FOG define and switches to a shader parameter. 2025-10-11 08:11:35 +02:00
ParticleEmitter.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
ParticleEmitterType.cpp Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
ParticleEmitterType.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
ParticleManager.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
ParticleManager.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
Patch.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
Patch.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
PreprocessorWrapper.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
PreprocessorWrapper.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
RenderableObject.h Fix some includes in source/renderer 2025-07-07 17:45:54 +02:00
SColor.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
ShaderDefines.cpp Reduces string allocations in GUI and maths. 2025-10-11 19:44:22 +02:00
ShaderDefines.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
ShaderManager.cpp Allows to use the same technique for multiple shaders. 2025-09-29 12:04:42 +02:00
ShaderManager.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
ShaderProgram.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
ShaderProgram.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
ShaderProgramPtr.h Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
ShaderTechnique.cpp Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
ShaderTechnique.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
ShaderTechniquePtr.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
SkeletonAnim.h Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
SkeletonAnimDef.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
SkeletonAnimDef.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
SkeletonAnimManager.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
SkeletonAnimManager.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
SmoothedValue.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
SmoothedValue.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
Terrain.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
Terrain.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
TerrainProperties.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
TerrainProperties.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
TerrainTextureEntry.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
TerrainTextureEntry.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
TerrainTextureManager.cpp Fixes TerrainTextureManager after refactoring 2026-01-01 16:08:45 +01:00
TerrainTextureManager.h Makes loading terrain textures more smooth 2025-10-13 00:14:45 +02:00
TerritoryBoundary.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
TerritoryBoundary.h Fix some includes in source/graphics 2025-07-18 07:30:04 +02:00
TerritoryTexture.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
TerritoryTexture.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
TextRenderer.cpp Makes TextRenderer allocates using LinearAllocator 2025-10-12 00:53:12 +02:00
TextRenderer.h Makes TextRenderer allocates using LinearAllocator 2025-10-12 00:53:12 +02:00
Texture.h Fix some headers in gui 2025-07-02 13:20:13 +02:00
TextureConverter.cpp Make TaskManager independent of Future 2025-08-28 20:01:39 +02:00
TextureConverter.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
TextureManager.cpp Replace boost::filesystem std::filyestem 2025-10-31 13:43:50 +01:00
TextureManager.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
Unit.cpp Don't use UNUSED2 on always unused variables 2025-07-28 13:16:37 +02:00
Unit.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
UnitAnimation.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
UnitAnimation.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00
UnitManager.cpp Fix some includes in source/graphics 2025-07-20 17:28:48 +02:00
UnitManager.h Fix includes in source/graphics 2025-08-02 21:39:39 +02:00