Fix Fl_Tile::set_cursor() which was broken
... since commit 6ba7b49baf
.
This commit is contained in:
parent
27a779b235
commit
56af338cfd
@ -192,11 +192,11 @@ void Fl_Tile::resize(int X,int Y,int W,int H) {
|
|||||||
This method sets the window cursor for the given index \p n.
|
This method sets the window cursor for the given index \p n.
|
||||||
*/
|
*/
|
||||||
void Fl_Tile::set_cursor(int n) {
|
void Fl_Tile::set_cursor(int n) {
|
||||||
if (n < 0 || n > 3) n = 0; // check array index
|
if (n < 0 || n > 3) n = 0; // check array index
|
||||||
cursor_ = n; // always store the index
|
if (cursor_ == n) return; // nothing to do
|
||||||
if (cursor_ == n || !window())
|
cursor_ = n; // store the cursor index
|
||||||
return;
|
if (window())
|
||||||
window()->cursor(cursor(n));
|
window()->cursor(cursor(n));
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DRAGH 1
|
#define DRAGH 1
|
||||||
|
Loading…
Reference in New Issue
Block a user