mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 15:00:30 +02:00
new attempt at sizing the framebuffers, similar to what raven02 said
This commit is contained in:
1 parent
79470e0be4
commit
4c913c097e
2 files changed
+12
-2
No files matched your search
@@ -389,8 +389,13 @@ void GuessDrawingSize(int &drawing_width, int &drawing_height) {
|
||||
drawing_width = 480;
|
||||
drawing_height = 272;
|
||||
} else {
|
||||
drawing_width = std::min(drawing_width, 512);
|
||||
drawing_height = std::min(drawing_height, 512);
|
||||
// New attempt: Use the max of region and scissor. Round to even number as games are highly inconsistent .
|
||||
int scissorX2 = (gstate.getScissorX2() + 1) & ~1;
|
||||
int regionX2 = (gstate.getRegionX2() + 1) & ~1;
|
||||
int scissorY2 = (gstate.getScissorY2() + 1) & ~1;
|
||||
int regionY2 = (gstate.getRegionY2() + 1) & ~1;
|
||||
drawing_width = std::min(512, std::max(scissorX2, regionX2));
|
||||
drawing_height = std::min(512, std::max(scissorY2, regionY2));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user