1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

About: Use unveil()

This commit is contained in:
Andreas Kling 2020-01-21 12:12:07 +01:00
parent 39931733a5
commit 21886ff9e2

View file

@ -47,6 +47,13 @@ int main(int argc, char** argv)
return 1;
}
if (unveil("/res", "r") < 0) {
perror("unveil");
return 1;
}
unveil(nullptr, nullptr);
auto window = GWindow::construct();
window->set_title("About SerenityOS");
Rect window_rect { 0, 0, 240, 180 };