use crtc mode dimensions rather than crtc dimensions when discarding modes since crtc dimensions may be rotated
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@181 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
This commit is contained in:
parent
561c25e522
commit
7568a3a45d
@ -177,16 +177,13 @@ isFull(false)
|
||||
{
|
||||
CrtcInfoPtr crtcInfo(resources, resources->crtcs[c]);
|
||||
|
||||
if (crtcInfo) {
|
||||
if (crtcInfo && (curMode = getModeInfo(resources, crtcInfo->mode))) {
|
||||
OutputInfos outputInfos(resources, crtcInfo);
|
||||
|
||||
for (int m = 0; m < resources->nmode; ++m) {
|
||||
if (resources->modes[m].width <= crtcInfo->width && resources->modes[m].height <= crtcInfo->height) {
|
||||
if (resources->modes[m].width <= curMode->width && resources->modes[m].height <= curMode->height) {
|
||||
if (isGood(resources->modes[m].id, outputInfos.get()))
|
||||
addMode(resources->modes[m], infoVector[c], NULL, NULL);
|
||||
|
||||
if (resources->modes[m].id == crtcInfo->mode)
|
||||
curMode = resources->modes + m;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user