feat: spreadsheet cell resizing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user