#define CARD_OFFSET 0
-#include "rtg_driver_amiga/rtg_enums.h"
+#include "rtg_enums.h"
void rtg_write(uint32_t address, uint32_t value, uint8_t mode);
unsigned int rtg_read(uint32_t address, uint8_t mode);
void rtg_set_clut_entry(uint8_t index, uint32_t xrgb);
void rtg_init_display();
void rtg_shutdown_display();
+void rtg_enable_mouse_cursor();
unsigned int rtg_get_fb();
+void rtg_set_mouse_cursor_pos(int16_t x, int16_t y);
+void rtg_set_cursor_clut_entry(uint8_t r, uint8_t g, uint8_t b, uint8_t idx);
+void rtg_set_mouse_cursor_image(uint8_t *src, uint8_t w, uint8_t h);
+
+void rtg_show_fps(uint8_t enable);
+void rtg_palette_debug(uint8_t enable);
int init_rtg_data(struct emulator_config *cfg);
void shutdown_rtg();
dptr += pitch;
#define TEMPLATE_LOOPX \
- tmpl_x++; \
- cur_byte = (invert) ? sptr[tmpl_x] ^ 0xFF : sptr[tmpl_x]; \
+ if (sptr) { cur_byte = sptr[tmpl_x]; } \
+ else { cur_byte = ps_read_8(src_addr + tmpl_x); } \
+ if (invert) { cur_byte ^= 0xFF; } \
+ tmpl_x++;
#define TEMPLATE_LOOPY \
sptr += t_pitch; \
+ src_addr += t_pitch; \
dptr += pitch; \
tmpl_x = offset_x / 8; \
cur_bit = base_bit;