feat: spreadsheet cell resizing

This commit is contained in:
2026-03-06 16:46:15 +01:00
parent 3985188baa
commit 729c227b35
15 changed files with 194 additions and 5 deletions
+9
View File
@@ -153,6 +153,7 @@ namespace WinServer {
info.width = g_slots[i].width;
info.height = g_slots[i].height;
info.dirty = g_slots[i].dirty ? 1 : 0;
info.cursor = g_slots[i].cursor;
g_slots[i].dirty = false; // clear dirty after read
count++;
}
@@ -246,6 +247,14 @@ namespace WinServer {
return 0;
}
int SetCursor(int windowId, int callerPid, int cursor) {
if (windowId < 0 || windowId >= MaxWindows) return -1;
WindowSlot& slot = g_slots[windowId];
if (!slot.used || slot.ownerPid != callerPid) return -1;
slot.cursor = (uint8_t)cursor;
return 0;
}
int SetScale(int scale) {
if (scale < 0) scale = 0;
if (scale > 2) scale = 2;