Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
screen.c File Reference
#include "xep128.h"
#include "screen.h"
#include "dave.h"
#include "configuration.h"
#include "main.h"
#include "input.h"
#include "xemu/lodepng.h"
#include "xemu/../rom/ep128/app_icon.c"
#include <SDL.h>
#include "xemu/osd_font_16x16.c"
Include dependency graph for screen.c:

Go to the source code of this file.

Macros

#define XEP128_NEED_SDL_WMINFO
 
#define SCREEN_RATIO   ((double)SCREEN_WIDTH / (double)(SCREEN_HEIGHT * 2))
 

Functions

void osd_disable (void)
 
void osd_clear (void)
 
void osd_update (void)
 
void osd_set_colour (int fg_r, int fg_g, int fg_b, int fg_a, int bg_r, int bg_g, int bg_b, int bg_a)
 
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)
 
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)
 
int _sdl_emu_secured_message_box_ (Uint32 sdlflag, const char *msg)
 
int _sdl_emu_secured_modal_box_ (const char *items_in, const char *msg)
 

Variables

int is_fullscreen = 0
 
SDL_Window * sdl_win = NULL
 
SDL_SysWMinfo sdl_wminfo
 
SDL_PixelFormat * sdl_pixel_format
 
int warn_for_mouse_grab = 1
 
Uint32 sdl_winid
 

Macro Definition Documentation

◆ SCREEN_RATIO

#define SCREEN_RATIO   ((double)SCREEN_WIDTH / (double)(SCREEN_HEIGHT * 2))

Definition at line 169 of file screen.c.

◆ XEP128_NEED_SDL_WMINFO

#define XEP128_NEED_SDL_WMINFO

Definition at line 20 of file screen.c.

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.

Here is the call graph for this function:

◆ _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.

Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:

◆ osd_replay()

void osd_replay ( int  fade)

Definition at line 146 of file screen.c.

◆ osd_set_colour()

void osd_set_colour ( int  fg_r,
int  fg_g,
int  fg_b,
int  fg_a,
int  bg_r,
int  bg_g,
int  bg_b,
int  bg_a 
)

Definition at line 85 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.

Here is the caller graph for this function:

◆ 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 = 0

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 = NULL

Definition at line 43 of file screen.c.

◆ sdl_winid

Uint32 sdl_winid

Definition at line 49 of file screen.c.

◆ sdl_wminfo

SDL_SysWMinfo sdl_wminfo

Definition at line 44 of file screen.c.

◆ warn_for_mouse_grab

int warn_for_mouse_grab = 1

Definition at line 48 of file screen.c.