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:
parent
dc44993465
commit
1990c899dd
2 changed files with 2 additions and 2 deletions
|
@ -540,7 +540,7 @@ int main(void)
|
||||||
dgdn.name.byte_size = 0;
|
dgdn.name.byte_size = 0;
|
||||||
dgdn.name.str = NULL;
|
dgdn.name.str = NULL;
|
||||||
if ( ioctl(1, TIOCGDISPLAYS, &gdisplays) == 0 &&
|
if ( ioctl(1, TIOCGDISPLAYS, &gdisplays) == 0 &&
|
||||||
1 < gdisplays.count &&
|
0 < gdisplays.count &&
|
||||||
(dgdn.device = display.device, true) &&
|
(dgdn.device = display.device, true) &&
|
||||||
(dispmsg_issue(&dgdn, sizeof(dgdn)) == 0 || errno != ENODEV) )
|
(dispmsg_issue(&dgdn, sizeof(dgdn)) == 0 || errno != ENODEV) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -435,7 +435,7 @@ int main(void)
|
||||||
dgdn.name.byte_size = 0;
|
dgdn.name.byte_size = 0;
|
||||||
dgdn.name.str = NULL;
|
dgdn.name.str = NULL;
|
||||||
if ( ioctl(1, TIOCGDISPLAYS, &gdisplays) == 0 &&
|
if ( ioctl(1, TIOCGDISPLAYS, &gdisplays) == 0 &&
|
||||||
1 < gdisplays.count &&
|
0 < gdisplays.count &&
|
||||||
(dgdn.device = display.device, true) &&
|
(dgdn.device = display.device, true) &&
|
||||||
(dispmsg_issue(&dgdn, sizeof(dgdn)) == 0 || errno != ENODEV) )
|
(dispmsg_issue(&dgdn, sizeof(dgdn)) == 0 || errno != ENODEV) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue