From c63f9eeb415bda43c133f8a845bfcf9a8ad4eff9 Mon Sep 17 00:00:00 2001 From: Sergi Granell Date: Thu, 26 Oct 2017 13:37:19 +0200 Subject: More SceDisplay NIDs, update psp2/display.h --- include/user/display.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include/user/display.h') diff --git a/include/user/display.h b/include/user/display.h index 58a08d2..3121c94 100644 --- a/include/user/display.h +++ b/include/user/display.h @@ -71,6 +71,11 @@ int sceDisplaySetFrameBuf(const SceDisplayFrameBuf *pParam, SceDisplaySetBufSync */ int sceDisplayGetFrameBuf(SceDisplayFrameBuf *pParam, SceDisplaySetBufSync sync); +/** + * Current display index + */ +int sceDisplayGetDisplay(void); + /** * Get current number of fps for the current screen mode. * @@ -81,11 +86,28 @@ int sceDisplayGetFrameBuf(SceDisplayFrameBuf *pParam, SceDisplaySetBufSync sync) */ int sceDisplayGetRefreshRate(float *pFps); +/** + * Get current framebuffer dimensions + * + * @param[out] width - Framebuffer width + * @param[out] height - Framebuffer height + * + * @return 0 on success, < 0 on error. +*/ +int sceDisplayGetFrameBufDimensions(int *width, int *height); + /** * Number of vertical blank pulses up to now */ int sceDisplayGetVcount(void); +/** + * Number of vertical blank pulses up to now for a display + * + * @param[in] display - Display index + */ +int sceDisplayGetVcountForDisplay(int display); + /** * Wait for vertical blank start */ -- cgit v1.2.3