[pd-drivers]: Ad more debug values

[pd-3ds]: Use new debug values
[pd-lithium]: Add functionality to DrawList::Optimize
[pd-ui7]: Add setters for Menu pos ans size
This commit is contained in:
2026-03-12 20:18:27 +01:00
parent 02d2200edd
commit 1b47ed843f
5 changed files with 24 additions and 2 deletions

View File

@@ -71,6 +71,7 @@ PD_API void DrawList::Merge(DrawList::Ref list) {
PD_API void DrawList::Copy(DrawList::Ref list) { pPool.Copy(list->pPool); }
PD_API void DrawList::Optimize() {
pPool.Sort();
/*std::sort(pDrawList.begin(), pDrawList.end(),
[](const PD::Li::Command::Ref &a, const PD::Li::Command::Ref &b) {
if (a->Layer == b->Layer) { // Same layer