DX9:Implement resize back-buffer.

This commit is contained in:
xebra 2014-12-26 01:41:12 +09:00
parent 2e675c7b0b
commit ecbc942c55
2 changed files with 21 additions and 4 deletions

View file

@ -130,6 +130,7 @@ bool iosCanUseJit;
// Really need to clean this mess of globals up... but instead I add more :P
bool g_TakeScreenshot;
static bool isOuya;
static bool resized = false;
struct PendingMessage {
std::string msg;
@ -711,6 +712,11 @@ void NativeRender() {
if (g_TakeScreenshot) {
TakeScreenshot();
}
if (resized) {
resized = false;
D3D9_Resize(0);
}
}
void HandleGlobalMessage(const std::string &msg, const std::string &value) {
@ -884,6 +890,8 @@ void NativeMessageReceived(const char *message, const char *value) {
}
void NativeResized() {
resized = true;
if (uiContext) {
// Modifying the bounds here can be used to "inset" the whole image to gain borders for TV overscan etc.
// The UI now supports any offset but not the EmuScreen yet.