Replaced mousepointer by transparent xbm file
This commit is contained in:
@@ -78,6 +78,7 @@ class GUI_PyGame:
|
||||
# Window name
|
||||
pygame.display.set_caption(name)
|
||||
# Hide mouse cursor
|
||||
pygame.mouse.set_cursor(*pygame.cursors.load_xbm('transparent.xbm','transparent.msk'))
|
||||
#pygame.mouse.set_visible(False)
|
||||
# Store screen and size
|
||||
self.size = size
|
||||
|
||||
4
transparent.msk
Normal file
4
transparent.msk
Normal file
@@ -0,0 +1,4 @@
|
||||
#define transparent_width 8
|
||||
#define transparent_height 8
|
||||
static unsigned char transparent_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
6
transparent.xbm
Normal file
6
transparent.xbm
Normal file
@@ -0,0 +1,6 @@
|
||||
#define transparent_width 8
|
||||
#define transparent_height 8
|
||||
#define transparent_x_hot 0
|
||||
#define transparent_y_hot 0
|
||||
static unsigned char transparent_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
||||
Reference in New Issue
Block a user