Fix ifs clang-format didn’t get

This commit is contained in:
numzero
2023-10-04 21:10:58 +03:00
committed by Desour
parent 565c114f94
commit d5690cc43b
25 changed files with 69 additions and 138 deletions

View File

@ -475,8 +475,7 @@ bool CIrrDeviceLinux::createWindow()
if (CreationParams.Fullscreen) {
// Don't try to set window position
} else if (CreationParams.WindowPosition.X >= 0 || CreationParams.WindowPosition.Y >= 0) // default is -1, -1
{
} else if (CreationParams.WindowPosition.X >= 0 || CreationParams.WindowPosition.Y >= 0) { // default is -1, -1
// Window managers are free to ignore positions above, so give it another shot
XMoveWindow(XDisplay, XWindow, x, y);
}
@ -1967,8 +1966,7 @@ Cursor CIrrDeviceLinux::TextureToMonochromeCursor(irr::video::ITexture *tex, con
pixelCol.setData((const void *)data, format);
data += bytesPerPixel;
if (pixelCol.getAlpha() == 0) // transparent
{
if (pixelCol.getAlpha() == 0) { // transparent
XPutPixel(maskImage, x, y, 0);
XPutPixel(sourceImage, x, y, 0);
} else // color