xcursor: make cursor data and metadata const
This commit is contained in:
		
							parent
							
								
									79be26ff1f
								
							
						
					
					
						commit
						b6dea80907
					
				| 
						 | 
					@ -27,7 +27,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdint.h>
 | 
					#include <stdint.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static uint32_t cursor_data[] = {
 | 
					static const uint32_t cursor_data[] = {
 | 
				
			||||||
	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000,
 | 
						0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000,
 | 
				
			||||||
	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
 | 
						0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
 | 
				
			||||||
	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000,
 | 
						0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000,
 | 
				
			||||||
| 
						 | 
					@ -532,7 +532,7 @@ static uint32_t cursor_data[] = {
 | 
				
			||||||
	0x00000000, 0x00000000,
 | 
						0x00000000, 0x00000000,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct cursor_metadata {
 | 
					static const struct cursor_metadata {
 | 
				
			||||||
	char *name;
 | 
						char *name;
 | 
				
			||||||
	int width, height;
 | 
						int width, height;
 | 
				
			||||||
	int hotspot_x, hotspot_y;
 | 
						int hotspot_x, hotspot_y;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,7 +46,7 @@ static void xcursor_destroy(struct wlr_xcursor *cursor) {
 | 
				
			||||||
#include "xcursor/cursor_data.h"
 | 
					#include "xcursor/cursor_data.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct wlr_xcursor *xcursor_create_from_data(
 | 
					static struct wlr_xcursor *xcursor_create_from_data(
 | 
				
			||||||
		struct cursor_metadata *metadata, struct wlr_xcursor_theme *theme) {
 | 
							const struct cursor_metadata *metadata, struct wlr_xcursor_theme *theme) {
 | 
				
			||||||
	struct wlr_xcursor *cursor;
 | 
						struct wlr_xcursor *cursor;
 | 
				
			||||||
	struct wlr_xcursor_image *image;
 | 
						struct wlr_xcursor_image *image;
 | 
				
			||||||
	int size;
 | 
						int size;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue