Commit 75cb5259 authored by Gerhard Stein's avatar Gerhard Stein

Added higher resolutions for the font, so we see everything better

parent 6bc49d10
......@@ -11,11 +11,12 @@
#include <base/video/scaler/CScaler.h>
#include "GsFont.xpm"
#include "GsFont2x.xpm"
#include "GsFont4x.xpm"
#include "GsFont8x.xpm"
#include "AlternateFont.xpm"
#include <string.h>
#include <cstdlib>
///////////////////////////////////
///// Initialization Routines /////
///////////////////////////////////
......@@ -190,6 +191,16 @@ void GsFont::loadinternalFont(const int size)
setFillWidthTable(16);
loadinternalFont(GsFont2x_xpm);
}
else if(size == 4)
{
setFillWidthTable(32);
loadinternalFont(GsFont4x_xpm);
}
else if(size == 8)
{
setFillWidthTable(64);
loadinternalFont(GsFont8x_xpm);
}
else
{
throw(0);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -435,9 +435,17 @@ bool CGameLauncher::start()
const auto height = gVideoDriver.getHeight();
// Height is larger than 480, use the scaled up fonts in the menu,
// Depending on the height the font is loaded as scaled
// so readability is better on higher resolutions.
if(height > 480)
if(height >= 1920)
{
Font.loadinternalFont(8);
}
else if(height > 960)
{
Font.loadinternalFont(4);
}
else if(height > 480)
{
Font.loadinternalFont(2);
}
......
......@@ -225,6 +225,8 @@ bool GameDownloader::readGamesNode(boost::property_tree::ptree &pt)
{
return false;
}
return true;
}
bool GameDownloader::readLegacyCatalogue(boost::property_tree::ptree &pt)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment