feat(gx): add work for console hardware detection

This commit is contained in:
phaneron 2025-04-01 15:18:36 -04:00
parent 12b405a4dd
commit c67ca6fba9
6 changed files with 105 additions and 5 deletions

View file

@ -0,0 +1,8 @@
#include "gx/CGxMonitorMode.hpp"
int32_t CGxMonitorModeSort(const void* a, const void* b) {
auto i = static_cast<const CGxMonitorMode*>(a);
auto j = static_cast<const CGxMonitorMode*>(b);
return (i->size.x * i->size.y) - (j->size.x * j->size.y);
}