mirror of https://github.com/OpenRCT2/OpenRCT2.git
change to conform to consistent code style
This commit is contained in:
parent
0760dab657
commit
edba77dd9d
10
src/rct2.c
10
src/rct2.c
|
@ -251,13 +251,12 @@ void get_system_info()
|
|||
MEMORYSTATUS memInfo;
|
||||
|
||||
versionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
||||
if (GetVersionEx(&versionInfo)){
|
||||
if (GetVersionEx(&versionInfo)) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_OS_PLATFORM_ID, uint32) = versionInfo.dwPlatformId;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_OS_MAJOR_VERSION, uint32) = versionInfo.dwMajorVersion;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_OS_MINOR_VERSION, uint32) = versionInfo.dwMinorVersion;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_OS_BUILD_NUMBER, uint32) = versionInfo.dwBuildNumber;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_OS_PLATFORM_ID, uint32) = -1;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_OS_MAJOR_VERSION, uint32) = 0;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_OS_MINOR_VERSION, uint32) = 0;
|
||||
|
@ -286,12 +285,11 @@ void get_system_info()
|
|||
RCT2_GLOBAL(0x01423C0C, sint32) = GetSystemMetrics(SM_CYSCREEN);
|
||||
|
||||
HDC screenHandle = GetDC(NULL);
|
||||
if (screenHandle){
|
||||
if (screenHandle) {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_CAP_BPP, sint32) = GetDeviceCaps(screenHandle, BITSPIXEL);
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_CAP_RASTER_STRETCH, sint32) = GetDeviceCaps(screenHandle, RASTERCAPS) >> 8;
|
||||
ReleaseDC(NULL, screenHandle);
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_CAP_BPP, sint32) = 0;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_CAP_RASTER_STRETCH, sint32) = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue