Cursor on X11 behaves now like on Win32 and doesn't try to clip positions to the window.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5593 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2017-12-19 23:00:31 +00:00
parent 3712ca9d97
commit cd876e4fe7
2 changed files with 4 additions and 12 deletions

View File

@ -1,5 +1,6 @@
--------------------------
Changes in 1.9 (not yet released)
- Cursor on X11 behaves now like on Win32 and doesn't try to clip positions to the window
- IImage::copyToWithAlpha has a new parameter to allow combining alpha value instead of replacing them. This uses new blitters called BLITTER_TEXTURE_COMBINE_ALPHA. Thx @chronologicaldot for providing this patch and @burningreggae for his feedback.
- Add _IRR_COMPILE_WITH_PARTICLES_ to control compilation of particle system
- Add IGUIImage::setDrawBackground to allow disabling background drawing even when no texture is set.

View File

@ -156,12 +156,12 @@ namespace irr
void initXAtoms();
bool switchToFullscreen(bool reset=false);
#ifdef _IRR_COMPILE_WITH_X11_
#ifdef _IRR_COMPILE_WITH_X11_
bool createInputContext();
void destroyInputContext();
EKEY_CODE getKeyCode(XEvent &event);
#endif
#endif
//! Implementation of the linux cursor control
class CCursorControl : public gui::ICursorControl
@ -338,15 +338,6 @@ namespace irr
&tmp, &tmp,
&itmp1, &itmp2,
&CursorPos.X, &CursorPos.Y, &maskreturn);
if (CursorPos.X < 0)
CursorPos.X = 0;
if (CursorPos.X > (s32) Device->Width)
CursorPos.X = Device->Width;
if (CursorPos.Y < 0)
CursorPos.Y = 0;
if (CursorPos.Y > (s32) Device->Height)
CursorPos.Y = Device->Height;
#endif
}