chore(gx): rename CGxFormat::sampleCount to CGxFormat::multisampleCount

This commit is contained in:
fallenoak 2025-11-16 21:35:34 -06:00
parent 53929a233e
commit 4f5c90b690
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ class CGxFormat {
int32_t maximize;
Format depthFormat;
C2iVector size;
uint32_t sampleCount;
uint32_t multisampleCount;
Format colorFormat;
uint32_t refreshRate;
uint32_t vsync;

View File

@ -1376,10 +1376,10 @@ void CGxDeviceD3d::ISetPresentParms(D3DPRESENT_PARAMETERS& d3dpp, const CGxForma
break;
}
if (format.sampleCount <= 1) {
if (format.multisampleCount <= 1) {
d3dpp.Flags = D3DPRESENTFLAG_LOCKABLE_BACKBUFFER;
} else {
d3dpp.MultiSampleType = static_cast<D3DMULTISAMPLE_TYPE>(format.sampleCount);
d3dpp.MultiSampleType = static_cast<D3DMULTISAMPLE_TYPE>(format.multisampleCount);
// TODO MultiSampleQuality
}

View File

@ -313,7 +313,7 @@ int32_t CGxDeviceGLL::DeviceSetFormat(const CGxFormat& format) {
format.refreshRate,
v7,
format.window ^ 1,
format.sampleCount
format.multisampleCount
);
OsInputPostEvent(OS_INPUT_SIZE, v15.right - v15.left, v15.bottom - v15.top, 0, 0);