mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
testdmabuf: Add a --fullscreen option
This may help in getting a scanout tranche.
This commit is contained in:
parent
a61c7f7871
commit
6dfa6fe442
@ -643,6 +643,7 @@ main (int argc, char *argv[])
|
||||
gboolean disjoint = FALSE;
|
||||
gboolean premultiplied = TRUE;
|
||||
gboolean decorated = TRUE;
|
||||
gboolean fullscreen = FALSE;
|
||||
unsigned int i;
|
||||
const char *save_filename = NULL;
|
||||
|
||||
@ -652,6 +653,8 @@ main (int argc, char *argv[])
|
||||
disjoint = TRUE;
|
||||
else if (g_str_equal (argv[i], "--undecorated"))
|
||||
decorated = FALSE;
|
||||
else if (g_str_equal (argv[i], "--fullscreen"))
|
||||
fullscreen = TRUE;
|
||||
else if (g_str_equal (argv[i], "--unpremultiplied"))
|
||||
premultiplied = FALSE;
|
||||
else if (g_str_equal (argv[i], "--download-to"))
|
||||
@ -687,6 +690,8 @@ main (int argc, char *argv[])
|
||||
|
||||
window = gtk_window_new ();
|
||||
gtk_window_set_decorated (GTK_WINDOW (window), decorated);
|
||||
if (fullscreen)
|
||||
gtk_window_fullscreen (GTK_WINDOW (window));
|
||||
|
||||
picture = gtk_picture_new_for_paintable (GDK_PAINTABLE (texture));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user