X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fgpulib%2Fgpu.h;h=d0f3bf85251197e8381f9b7732db9a351e0a1977;hb=d56340b165b4a7ef25bc3c7509d4f2315843bc31;hp=7e1d18b5e885886ca00aa05c98c25d05dda49c13;hpb=8ec1e4de88798ca548481773e49bb01a4de03139;p=pcsx_rearmed.git diff --git a/plugins/gpulib/gpu.h b/plugins/gpulib/gpu.h index 7e1d18b5..d0f3bf85 100644 --- a/plugins/gpulib/gpu.h +++ b/plugins/gpulib/gpu.h @@ -8,6 +8,9 @@ * See the COPYING file in the top-level directory. */ +#ifndef __GPULIB_GPU_H__ +#define __GPULIB_GPU_H__ + #include #ifdef __cplusplus @@ -68,6 +71,8 @@ struct psx_gpu { uint32_t blanked:1; uint32_t enhancement_enable:1; uint32_t enhancement_active:1; + uint32_t downscale_enable:1; + uint32_t downscale_active:1; uint32_t *frame_count; uint32_t *hcnt; /* hsync count */ struct { @@ -91,6 +96,8 @@ struct psx_gpu { int useDithering:1; /* 0 - off , 1 - on */ uint16_t *(*get_enhancement_bufer) (int *x, int *y, int *w, int *h, int *vram_h); + uint16_t *(*get_downscale_buffer) + (int *x, int *y, int *w, int *h, int *vram_h); void *(*mmap)(unsigned int size); void (*munmap)(void *ptr, unsigned int size); }; @@ -140,3 +147,5 @@ void GPUrearmedCallbacks(const struct rearmed_cbs *cbs_); #ifdef __cplusplus } #endif + +#endif /* __GPULIB_GPU_H__ */