mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 09:44:02 +00:00
Debug overlays should respect viewport size change
This commit is contained in:
parent
2bbcfa2284
commit
081c6bd58d
1 changed files with 2 additions and 13 deletions
|
@ -1089,14 +1089,8 @@ This build is not yet final, and as such there are a couple things lacking. They
|
||||||
|
|
||||||
cmDebug = new DebugFont();
|
cmDebug = new DebugFont();
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
cmDebug->position = Vector(20 - virtualOffX,50);
|
|
||||||
cmDebug->followCamera = 1;
|
cmDebug->followCamera = 1;
|
||||||
cmDebug->alpha = 0;
|
cmDebug->alpha = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cmDebug->setFontSize(6);
|
cmDebug->setFontSize(6);
|
||||||
}
|
}
|
||||||
addRenderObject(cmDebug, LR_DEBUG_TEXT);
|
addRenderObject(cmDebug, LR_DEBUG_TEXT);
|
||||||
|
@ -1299,11 +1293,6 @@ This build is not yet final, and as such there are a couple things lacking. They
|
||||||
{
|
{
|
||||||
fpsText->color = Vector(1,1,1);
|
fpsText->color = Vector(1,1,1);
|
||||||
fpsText->setFontSize(6);
|
fpsText->setFontSize(6);
|
||||||
|
|
||||||
fpsText->position = Vector(10 - virtualOffX,580);
|
|
||||||
fpsText->position.z = 5;
|
|
||||||
|
|
||||||
|
|
||||||
fpsText->setText("FPS");
|
fpsText->setText("FPS");
|
||||||
fpsText->alpha= 0;
|
fpsText->alpha= 0;
|
||||||
|
|
||||||
|
@ -3999,6 +3988,7 @@ void DSQ::onUpdate(float dt)
|
||||||
os << "elemu: " << game->elementUpdateList.size() << " elemi: " << game->elementInteractionList.size() << std::endl;
|
os << "elemu: " << game->elementUpdateList.size() << " elemi: " << game->elementInteractionList.size() << std::endl;
|
||||||
os << "Lua mem: " << scriptInterface.gcGetStats() << " KB" << std::endl;
|
os << "Lua mem: " << scriptInterface.gcGetStats() << " KB" << std::endl;
|
||||||
|
|
||||||
|
cmDebug->position = Vector(20 - virtualOffX,50);
|
||||||
cmDebug->setText(os.str());
|
cmDebug->setText(os.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4011,8 +4001,7 @@ void DSQ::onUpdate(float dt)
|
||||||
os << " | sndQ: " << core->dbg_numThreadDecoders;
|
os << " | sndQ: " << core->dbg_numThreadDecoders;
|
||||||
os << " | dt: " << core->get_current_dt();
|
os << " | dt: " << core->get_current_dt();
|
||||||
|
|
||||||
|
fpsText->position = Vector(10 - virtualOffX,580);
|
||||||
|
|
||||||
fpsText->setText(os.str());
|
fpsText->setText(os.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue