> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 23:58:04 up 7 days, 8:55, 1 user, load average: 0.71, 0.92, 0.81
This commit is contained in:
@ -59,11 +59,6 @@ void NDL_OpenCanvas(int *w, int *h) {
|
||||
if (strcmp(buf, "WIDTH") == 0) dev_w = num;
|
||||
if (strcmp(buf, "HEIGHT") == 0) dev_h = num;
|
||||
}
|
||||
fgets(buf, sizeof(buf), fp);
|
||||
if (fscanf(fp, "WIDTH %*c %d\nHEIGHT %*c %d", &dev_w, &dev_h) != 2) {
|
||||
printf("cannot parse dispinfo");
|
||||
exit(-1);
|
||||
}
|
||||
fclose(fp);
|
||||
|
||||
screen_w = (*w == 0 || *w > dev_w) ? dev_w : *w;
|
||||
|
Reference in New Issue
Block a user