git.lucas.co / cce-fonts
font browser

commit83b3476bdcde8257f8086f9e46f5fa38452469d7
parent30cfbf6a7c
authorLucas Galante <[email protected]>
date2026-07-07 21:20
feat: render via the single paint path by default (Phase 3)

display_list() now returns the scene::painter DisplayList unconditionally (CCE_LEGACY_PAINT falls back). Third app on the Phase 3 single paint path by default. Self-verified by screenshot: font list, buttons, style/size controls and preview all render identically to the legacy path.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

 src/main.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index bf74a9c..8132352 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -474,8 +474,8 @@ impl Application for TypefaceApp {
     }
 
     fn display_list(&mut self) -> Option<cce_ui::scene::paint::DisplayList> {
-        // Opt-in A/B for the Phase 3 single paint path (CCE_PAINT_WALK); default-on once verified.
-        if std::env::var("CCE_PAINT_WALK").is_err() {
+        // Phase 3: render via the single paint path by default. Set CCE_LEGACY_PAINT to fall back.
+        if std::env::var("CCE_LEGACY_PAINT").is_ok() {
             return None;
         }
         let root: *mut (dyn cce_ui::widget::Element + 'static) = self.root_window.as_ptr_mut();