Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ abstract class ComposeScreen(
//~ if >= 26.1 'render' -> 'extractRenderState'
override fun extractRenderState(ctx: GuiGraphicsExtractor, mouseX: Int, mouseY: Int, tickDelta: Float) {
if (Platform.screen().current<Any?>() !== this) return

//? if < 1.21.8
//renderBackground(ctx, mouseX, mouseY, tickDelta)

if (scenePoisoned) {
if (sceneRebuilds >= MAX_SCENE_REBUILDS) {
LOGGER.error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class HudEditorUIScreen : ComposeScreen() {
// a screen drawn over this one may render it as its parent so skip that pass or it closes the screen above us
if (Platform.screen().current<Any?>() !== this) return
if (closeRequested && System.currentTimeMillis() - closeRequestedAt >= closeAnimationMs) {
//? if < 1.21.8
//renderBackground(ctx, mouseX, mouseY, tickDelta)
Platform.screen().close()
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ class OneConfigUIScreen @JvmOverloads constructor(
// and that would queue a fullscreen blur which smears over the popup so bail unless we are current
if (Platform.screen().current<Any?>() !== this) return
if (closeRequested && System.currentTimeMillis() - closeRequestedAt >= closeAnimationMs) {
//? if < 1.21.8
//renderBackground(ctx, mouseX, mouseY, tickDelta)
Platform.screen().close()
//? if >= 1.21.8 {
// This frame skipped normal HUD rendering because OneConfig was open.
Expand Down
Loading