The desk is as high as the screen shows of it

On a screen taller than 16:9 the career's desk offers its lower rows for widgets and
icons (up to 4:3). A stored layout may use the greatest height; objects a shorter
screen cannot show are moved back into sight. Property names read as nouns throughout
the bank.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 20:47:31 +01:00
1 parent e3edd2f9ed
commit b3e5ef4b4d
7 files changed
+82 -6

No files matched your search

+16
View File
@@ -523,6 +523,22 @@ int main(int argc, char **argv) try {
const auto resized = moved;
require(!resize_desktop_widget(moved, "account", 3, 7) && moved == resized,
"Invalid widget size mutated layout");
// a taller screen shows more of the desk; a shorter one brings what lies below back into sight
{
auto tall = layout;
tall["objects"]["app-almanac"]["pinned"] = false;
set_desktop_height(2400);
require(place_desktop_object(tall, "app-almanac", 1800, 2150) && valid_desktop(tall) &&
tall["objects"]["app-almanac"]["y"].get<int>() + 224 > 2160 &&
tall["objects"]["app-almanac"]["y"].get<int>() + 224 <= 2400,
"Taller desk did not offer its lower rows");
auto unchanged = tall;
require(!fit_desktop(unchanged) && unchanged == tall, "Fit moved an object that is in sight");
set_desktop_height(2160);
require(valid_desktop(tall), "Layout of a taller screen is invalid on a shorter one");
require(fit_desktop(tall) && valid_desktop(tall) && tall["objects"]["app-almanac"]["y"].get<int>() + 224 <= 2160,
"Object below the shown desk was not brought back into sight");
}
auto corrupt = layout;
corrupt["objects"]["calendar"]["x"] = 999999;
require(!valid_desktop(corrupt), "Out of bounds desktop accepted");