mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-02 05:12:02 +00:00
[idd] driver/helper: dont allow resolutions that wont fit in ram
This commit is contained in:
@@ -471,6 +471,10 @@ void CPipeClient::Thread()
|
||||
HandleGPUStatus(msg);
|
||||
break;
|
||||
|
||||
case LGPipeMsg::RESOLUTIONREJECTED:
|
||||
HandleResolutionRejected(msg);
|
||||
break;
|
||||
|
||||
default:
|
||||
DEBUG_ERROR("Unknown message type %d", msg.type);
|
||||
break;
|
||||
@@ -528,3 +532,11 @@ void CPipeClient::HandleGPUStatus(const LGPipeMsg& msg)
|
||||
{
|
||||
CNotifyWindow::instance().setGPU(!msg.gpuStatus.software);
|
||||
}
|
||||
|
||||
void CPipeClient::HandleResolutionRejected(const LGPipeMsg& msg)
|
||||
{
|
||||
CNotifyWindow::instance().notifyResolutionRejected(
|
||||
msg.resolutionRejected.width,
|
||||
msg.resolutionRejected.height,
|
||||
msg.resolutionRejected.requiredSizeMiB);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user