Welcome, Guest. Please login or register. Did you miss your activation email?

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

0 Members and 1 Guest are viewing this topic.


  • Newbie
  • *
  • Posts: 9
    • 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});

but if i run the application it looks strange:

what i need to do to fix it?

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