#include <stdint.h>
+//#define RAW_FB_DISPLAY
+
#define gpu_log(fmt, ...) \
printf("%d:%03d: " fmt, *gpu.state.frame_count, *gpu.state.hcnt, ##__VA_ARGS__)
} last_list;
uint32_t last_vram_read_frame;
uint32_t w_out_old, h_out_old, status_vo_old;
- int screen_centering_type; // 0 - auto, 1 - game conrolled, 2 - manual
+ short screen_centering_type;
+ short screen_centering_type_default;
int screen_centering_x;
int screen_centering_y;
} state;
(int *x, int *y, int *w, int *h, int *vram_h);
void *(*mmap)(unsigned int size);
void (*munmap)(void *ptr, unsigned int size);
+ void (*gpu_state_change)(int what); // psx_gpu_state
};
extern struct psx_gpu gpu;
extern const unsigned char cmd_lengths[256];
-int do_cmd_list(uint32_t *list, int count, int *last_cmd);
+int do_cmd_list(uint32_t *list, int count, int *cycles, int *last_cmd);
struct rearmed_cbs;
void renderer_notify_res_change(void);
void renderer_notify_update_lace(int updated);
void renderer_sync(void);
-void renderer_notify_scanout_x_change(int x, int w);
+void renderer_notify_scanout_change(int x, int y);
int vout_init(void);
int vout_finish(void);
long GPUopen(unsigned long *disp, char *cap, char *cfg);
long GPUclose(void);
void GPUvBlank(int is_vblank, int lcf);
+void GPUgetScreenInfo(int *y, int *base_hres);
void GPUrearmedCallbacks(const struct rearmed_cbs *cbs_);
#ifdef __cplusplus