X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpulib%2Fgpu.h;h=553afbdb3aee44db8abd9bf776fdb3f6e298c2da;hb=b3ff74bacffbd393e3eef8f1a4251988d81d0ede;hp=b3a23023959bcb8f0e00d90821414bd2bdf4f9eb;hpb=80bc142638988fa7ba87aa17af1ccfcfc21d1e99;p=pcsx_rearmed.git diff --git a/plugins/gpulib/gpu.h b/plugins/gpulib/gpu.h index b3a23023..553afbdb 100644 --- a/plugins/gpulib/gpu.h +++ b/plugins/gpulib/gpu.h @@ -91,7 +91,8 @@ struct psx_gpu { } 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; @@ -114,6 +115,7 @@ struct psx_gpu { (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; @@ -134,7 +136,7 @@ void renderer_set_config(const struct rearmed_cbs *config); 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);