mirror of
https://github.com/rt64/rt64.git
synced 2025-03-14 13:21:24 +00:00
Add missing XRRFreeCrtcInfo
and XRRFreeScreenResources
functions (#46)
This commit is contained in:
parent
e106c18965
commit
e52aa9eea1
@ -251,10 +251,12 @@ namespace RT64 {
|
||||
if ((crtcInfo != nullptr) && (crtcInfo->mode != 0L)) {
|
||||
activeModeID = crtcInfo->mode;
|
||||
}
|
||||
XRRFreeCrtcInfo(crtcInfo);
|
||||
}
|
||||
|
||||
if (activeModeID == 0L) {
|
||||
fprintf(stderr, "Unable to find active mode through XRRGetScreenResources and XRRGetCrtcInfo.\n");
|
||||
XRRFreeScreenResources(screenResources);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -265,6 +267,8 @@ namespace RT64 {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
XRRFreeScreenResources(screenResources);
|
||||
# endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user