andlabs / andlabs/libui

Timer example on Windows redraws without clear, leading to very ugly text

Offen
#453 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
10.9k
Forks
612
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Not having investigated yet, I’m not sure if this is a bug in the timer example or in libui in general, but I am inclined to think the latter.

The issue is most readily demonstrated with a screenshot of running the timer example on Windows:

Screenshot of running timer.exe, demonstrating the claimed bug

This is the example that adds a new line each second. It appears to be redrawing each line without erasing it beforehand, and so since the text is antialiased, the end result is progressively increasing ugliness. The bottom line has been drawn once, the second-bottom twice, and so on.

I observed these symptoms in other cases too; this was just the most obvious example to demonstrate it in.

(The image may appear even wonkier than it should since my display is 2×.)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.