Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
screen.h File Reference
#include <SDL_video.h>
#include <SDL_syswm.h>
Include dependency graph for screen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SCREEN_WIDTH   736
 
#define SCREEN_HEIGHT   288
 
#define SCREEN_FORMAT   SDL_PIXELFORMAT_ARGB8888
 
#define OSD_FADE_START   300
 
#define OSD_FADE_STOP   0x80
 
#define OSD_FADE_DEC   3
 

Functions

int _sdl_emu_secured_message_box_ (Uint32 sdlflag, const char *msg)
 
int _sdl_emu_secured_modal_box_ (const char *items_in, const char *msg)
 
void screen_grab (SDL_bool state)
 
void screen_window_resized (int new_xsize, int new_ysize)
 
void screen_set_fullscreen (int state)
 
void screen_present_frame (Uint32 *ep_pixels)
 
int screen_shot (Uint32 *ep_pixels, const char *directory, const char *filename)
 
int screen_init (void)
 
void sdl_burn_events (void)
 
void osd_disable (void)
 
void osd_clear (void)
 
void osd_update (void)
 
void osd_write_char (int x, int y, char ch)
 
void osd_write_string (int x, int y, const char *s)
 
void osd_write_string_centered (int y, const char *s)
 
void osd_notification (const char *s)
 
void osd_replay (int fade)
 

Variables

int is_fullscreen
 
int warn_for_mouse_grab
 
SDL_Window * sdl_win
 
SDL_PixelFormat * sdl_pixel_format
 
Uint32 sdl_winid
 

Macro Definition Documentation

◆ OSD_FADE_DEC

#define OSD_FADE_DEC   3

Definition at line 38 of file screen.h.

◆ OSD_FADE_START

#define OSD_FADE_START   300

Definition at line 36 of file screen.h.

◆ OSD_FADE_STOP

#define OSD_FADE_STOP   0x80

Definition at line 37 of file screen.h.

◆ SCREEN_FORMAT

#define SCREEN_FORMAT   SDL_PIXELFORMAT_ARGB8888

Definition at line 33 of file screen.h.

◆ SCREEN_HEIGHT

#define SCREEN_HEIGHT   288

Definition at line 28 of file screen.h.

◆ SCREEN_WIDTH

#define SCREEN_WIDTH   736

Definition at line 27 of file screen.h.

Function Documentation

◆ _sdl_emu_secured_message_box_()

int _sdl_emu_secured_message_box_ ( Uint32  sdlflag,
const char *  msg 
)

Definition at line 448 of file screen.c.

◆ _sdl_emu_secured_modal_box_()

int _sdl_emu_secured_modal_box_ ( const char *  items_in,
const char *  msg 
)

Definition at line 469 of file screen.c.

◆ osd_clear()

void osd_clear ( void  )

Definition at line 72 of file screen.c.

◆ osd_disable()

void osd_disable ( void  )

Definition at line 66 of file screen.c.

◆ osd_notification()

void osd_notification ( const char *  s)

Definition at line 136 of file screen.c.

◆ osd_replay()

void osd_replay ( int  fade)

Definition at line 146 of file screen.c.

◆ osd_update()

void osd_update ( void  )

Definition at line 78 of file screen.c.

Here is the caller graph for this function:

◆ osd_write_char()

void osd_write_char ( int  x,
int  y,
char  ch 
)

Definition at line 92 of file screen.c.

◆ osd_write_string()

void osd_write_string ( int  x,
int  y,
const char *  s 
)

Definition at line 109 of file screen.c.

◆ osd_write_string_centered()

void osd_write_string_centered ( int  y,
const char *  s 
)

Definition at line 119 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ screen_grab()

void screen_grab ( SDL_bool  state)

Definition at line 156 of file screen.c.

Here is the caller graph for this function:

◆ screen_init()

int screen_init ( void  )

Definition at line 357 of file screen.c.

◆ screen_present_frame()

void screen_present_frame ( Uint32 ep_pixels)

Definition at line 227 of file screen.c.

◆ screen_set_fullscreen()

void screen_set_fullscreen ( int  state)

Definition at line 204 of file screen.c.

◆ screen_shot()

int screen_shot ( Uint32 ep_pixels,
const char *  directory,
const char *  filename 
)

Definition at line 263 of file screen.c.

◆ screen_window_resized()

void screen_window_resized ( int  new_xsize,
int  new_ysize 
)

Definition at line 172 of file screen.c.

◆ sdl_burn_events()

void sdl_burn_events ( void  )

Definition at line 434 of file screen.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ is_fullscreen

int is_fullscreen

Definition at line 42 of file screen.c.

◆ sdl_pixel_format

SDL_PixelFormat* sdl_pixel_format

Definition at line 45 of file screen.c.

◆ sdl_win

SDL_Window* sdl_win

Definition at line 43 of file screen.c.

◆ sdl_winid

Uint32 sdl_winid

Definition at line 49 of file screen.c.

◆ warn_for_mouse_grab

int warn_for_mouse_grab

Definition at line 40 of file screen.h.