Add other font size scaling

Minor fixes:
- Fixes some incorrect cast
- fixes some incorrect comments
This commit is contained in:
Pandagrapher
2022-08-19 19:05:06 +02:00
parent 89d2bdce5b
commit 7ee6fd795b
8 changed files with 97 additions and 51 deletions

View File

@@ -248,9 +248,8 @@ int RTScalable::getScale ()
double RTScalable::getGlobalScale()
{
return (static_cast<double>(RTScalable::getDPI()) /
static_cast<double>(RTScalable::baseDPI) *
RTScalable::getScale());
return (RTScalable::getDPI() / RTScalable::baseDPI *
static_cast<double>(RTScalable::getScale()));
}
int RTScalable::scalePixelSize(const int pixel_size)