mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
chore(gx): rename CGxFormat::sampleCount to CGxFormat::multisampleCount
This commit is contained in:
parent
53929a233e
commit
4f5c90b690
@ -29,7 +29,7 @@ class CGxFormat {
|
|||||||
int32_t maximize;
|
int32_t maximize;
|
||||||
Format depthFormat;
|
Format depthFormat;
|
||||||
C2iVector size;
|
C2iVector size;
|
||||||
uint32_t sampleCount;
|
uint32_t multisampleCount;
|
||||||
Format colorFormat;
|
Format colorFormat;
|
||||||
uint32_t refreshRate;
|
uint32_t refreshRate;
|
||||||
uint32_t vsync;
|
uint32_t vsync;
|
||||||
|
|||||||
@ -1376,10 +1376,10 @@ void CGxDeviceD3d::ISetPresentParms(D3DPRESENT_PARAMETERS& d3dpp, const CGxForma
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (format.sampleCount <= 1) {
|
if (format.multisampleCount <= 1) {
|
||||||
d3dpp.Flags = D3DPRESENTFLAG_LOCKABLE_BACKBUFFER;
|
d3dpp.Flags = D3DPRESENTFLAG_LOCKABLE_BACKBUFFER;
|
||||||
} else {
|
} else {
|
||||||
d3dpp.MultiSampleType = static_cast<D3DMULTISAMPLE_TYPE>(format.sampleCount);
|
d3dpp.MultiSampleType = static_cast<D3DMULTISAMPLE_TYPE>(format.multisampleCount);
|
||||||
|
|
||||||
// TODO MultiSampleQuality
|
// TODO MultiSampleQuality
|
||||||
}
|
}
|
||||||
|
|||||||
@ -313,7 +313,7 @@ int32_t CGxDeviceGLL::DeviceSetFormat(const CGxFormat& format) {
|
|||||||
format.refreshRate,
|
format.refreshRate,
|
||||||
v7,
|
v7,
|
||||||
format.window ^ 1,
|
format.window ^ 1,
|
||||||
format.sampleCount
|
format.multisampleCount
|
||||||
);
|
);
|
||||||
|
|
||||||
OsInputPostEvent(OS_INPUT_SIZE, v15.right - v15.left, v15.bottom - v15.top, 0, 0);
|
OsInputPostEvent(OS_INPUT_SIZE, v15.right - v15.left, v15.bottom - v15.top, 0, 0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user