f53df7da64
Code submissions have continually suffered from formatting inconsistencies that constantly have to be addressed. Using clang-format simplifies this by making code formatting more consistent, and allows automation of the code formatting so that maintainers can focus more on the code itself instead of code formatting.
29 lines
592 B
C
29 lines
592 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
struct cached_cursor {
|
|
gs_texture_t *texture;
|
|
uint32_t cx;
|
|
uint32_t cy;
|
|
};
|
|
|
|
struct cursor_data {
|
|
gs_texture_t *texture;
|
|
HCURSOR current_cursor;
|
|
POINT cursor_pos;
|
|
long x_hotspot;
|
|
long y_hotspot;
|
|
bool visible;
|
|
|
|
uint32_t last_cx;
|
|
uint32_t last_cy;
|
|
|
|
DARRAY(struct cached_cursor) cached_textures;
|
|
};
|
|
|
|
extern void cursor_capture(struct cursor_data *data);
|
|
extern void cursor_draw(struct cursor_data *data, long x_offset, long y_offset,
|
|
float x_scale, float y_scale, long width, long height);
|
|
extern void cursor_data_free(struct cursor_data *data);
|