mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 02:45:45 +00:00
Removed hard coded values for width and height
This commit is contained in:
parent
2b69fabf51
commit
1f4564eef3
1 changed files with 4 additions and 2 deletions
|
@ -495,8 +495,10 @@ private:
|
|||
if (transaction == TransactionId::Connect) {
|
||||
IGBPConnectRequestParcel request{ctx.ReadBuffer()};
|
||||
IGBPConnectResponseParcel response{
|
||||
static_cast<u32>(1280 * Settings::values.resolution_factor),
|
||||
static_cast<u32>(720 * Settings::values.resolution_factor)};
|
||||
static_cast<u32>(static_cast<u32>(DisplayResolution::UndockedWidth) *
|
||||
Settings::values.resolution_factor),
|
||||
static_cast<u32>(static_cast<u32>(DisplayResolution::UndockedHeight) *
|
||||
Settings::values.resolution_factor)};
|
||||
ctx.WriteBuffer(response.Serialize());
|
||||
} else if (transaction == TransactionId::SetPreallocatedBuffer) {
|
||||
IGBPSetPreallocatedBufferRequestParcel request{ctx.ReadBuffer()};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue