WindowServer: Implement fullscreen windows

If window size does not match framebuffer size, window data will be
scaled to framebuffer using nearest sampling for best performance.
This commit is contained in:
2024-11-13 19:10:15 +02:00
parent 5e041e6e5a
commit bda2c663da
6 changed files with 125 additions and 1 deletions

View File

@@ -164,6 +164,7 @@ namespace LibGUI
WindowSetAttributes,
WindowSetMouseCapture,
WindowSetSize,
WindowSetFullscreen,
DestroyWindowEvent,
CloseWindowEvent,
@@ -221,6 +222,11 @@ namespace LibGUI
uint32_t, height
);
DEFINE_PACKET(
WindowSetFullscreen,
bool, fullscreen
);
}
namespace EventPacket

View File

@@ -61,6 +61,7 @@ namespace LibGUI
void invalidate() { return invalidate(0, 0, width(), height()); }
void set_mouse_capture(bool captured);
void set_fullscreen(bool fullscreen);
void set_position(int32_t x, int32_t y);