forked from Blendman974/faceclaw
Use the texture cache and builtin-font drawing firmware extensions
This commit is contained in:
1 parent
deac81f98f
commit
90603b5aa4
9 files changed
+674
-60
No files matched your search
@@ -139,6 +139,11 @@ export function compositePage(page: EvenHubPage | null, size: { width: number; h
|
||||
for (const container of paintOrder(page.containers)) {
|
||||
switch (container.kind) {
|
||||
case "image":
|
||||
// Text painted so far is deferred draws (firmware-text runs), which
|
||||
// would otherwise render above this container's raster. Stock puts a
|
||||
// later image container OVER earlier text, so bake the pending draws
|
||||
// first; text painted after this container stays deferred (and above).
|
||||
image.bakeDeferredDrawsInPlace();
|
||||
paintImageContainer(image, container);
|
||||
break;
|
||||
case "text":
|
||||
|
||||
Reference in new issue
Block a user