1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix not offering setting a resolution with one display.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-11-27 11:16:10 +01:00
parent dc44993465
commit 1990c899dd
2 changed files with 2 additions and 2 deletions

View file

@ -540,7 +540,7 @@ int main(void)
dgdn.name.byte_size = 0;
dgdn.name.str = NULL;
if ( ioctl(1, TIOCGDISPLAYS, &gdisplays) == 0 &&
1 < gdisplays.count &&
0 < gdisplays.count &&
(dgdn.device = display.device, true) &&
(dispmsg_issue(&dgdn, sizeof(dgdn)) == 0 || errno != ENODEV) )
{

View file

@ -435,7 +435,7 @@ int main(void)
dgdn.name.byte_size = 0;
dgdn.name.str = NULL;
if ( ioctl(1, TIOCGDISPLAYS, &gdisplays) == 0 &&
1 < gdisplays.count &&
0 < gdisplays.count &&
(dgdn.device = display.device, true) &&
(dispmsg_issue(&dgdn, sizeof(dgdn)) == 0 || errno != ENODEV) )
{