Welcome, Guest. Please login or register.

Author Topic: Change mouse cursor image  (Read 102 times)

0 Members and 1 Guest are viewing this topic.

6Peppered9

  • Newbie
  • *
  • Posts: 5
    • View Profile
Change mouse cursor image
« on: November 29, 2018, 01:10:33 am »
Hello, i want to change my mouse cursor in my sfml window.

Using C++ SFML 2.5.0 on Linux.

This is the image that i want to set as cursor:

(Red Rectangle)

cursor.loadFromPixels(image.getPixelsPtr(), image.getSize(), {0,0});
window.setMouseCursor(cursor);

but if i run the application it looks strange:


what i need to do to fix it?

Thanks
« Last Edit: November 29, 2018, 01:16:39 am by 6Peppered9 »

 

anything