Compare commits

...

1 Commits

Author SHA1 Message Date
SuperDude88 84e7677ce7 Fix Overlapping Overlays
Still overlaps while the pipeline building overlay is fading out
2026-07-11 19:28:19 -04:00
+9
View File
@@ -254,6 +254,15 @@ void Overlay::update() {
mFpsCounter->SetAttribute("open", "");
mFpsCounter->SetAttribute("corner", kFpsCorners[idx]);
if(idx == 2 && mPipelineProgress && mPipelineProgress->GetAttribute("open")) {
// 12 (height of pipeline box off bottom) + height of pipeline box + 3 (padding space)
mFpsCounter->SetProperty(Rml::PropertyId::Bottom, Rml::Property(15 + mPipelineProgress->GetOffsetHeight(), Rml::Unit::PX));
}
else {
// Return fps counter to default height off the bottom
mFpsCounter->SetProperty(Rml::PropertyId::Bottom, Rml::Property(12, Rml::Unit::PX));
}
const Uint64 perfFreq = SDL_GetPerformanceFrequency();
float fps = aurora_get_fps();