mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-02 08:10:26 +02:00
Fix ifs clang-format didn’t get
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user