Atrinik Client  4.0
Functions | Variables
video.c File Reference
#include <global.h>
#include <toolkit/x11.h>

Go to the source code of this file.


void video_init (void)
void video_set_icon (SDL_Surface *icon)
int video_get_bpp (void)
int video_set_size (void)
uint32_t get_video_flags (void)
int video_fullscreen_toggle (SDL_Surface **surface, uint32_t *flags)


x11_display_type SDL_display
x11_window_type SDL_window

Detailed Description

Video-related code.

Definition in file video.c.

Function Documentation

uint32_t get_video_flags ( void  )

Calculate the video flags from the settings. When settings are changed at runtime, this MUST be called again.

The flags

Definition at line 365 of file video.c.

int video_fullscreen_toggle ( SDL_Surface **  surface,
uint32_t *  flags 

Attempt to flip the video surface to fullscreen or windowed mode.

Attempts to maintain the surface's state, but makes no guarantee that pointers (i.e., the surface's pixels field) will be the same after this call.

surfacePointer to surface ptr to toggle. May be different pointer on return. May be NULL on return due to failure.
flagsPointer to flags to set on surface. The value pointed to will be XOR'd with SDL_FULLSCREEN before use. Actual flags set will be filled into pointer. Contents are undefined on failure. Can be NULL, in which case the surface's current flags are used.
Non-zero on success, zero on failure.

Definition at line 392 of file video.c.

int video_get_bpp ( void  )

Get the bits per pixel value to use

Bits per pixel.

Definition at line 334 of file video.c.

void video_init ( void  )

Initialize the video system.

Definition at line 45 of file video.c.

void video_set_icon ( SDL_Surface *  icon)

Sets the application icon.

iconIcon to set.

Definition at line 306 of file video.c.

int video_set_size ( void  )

Sets the screen surface to a new size, after updating Screensize.

1 on success, 0 on failure.

Definition at line 344 of file video.c.

Variable Documentation

x11_display_type SDL_display

The display.

Definition at line 36 of file video.c.

x11_window_type SDL_window

The window.

Definition at line 40 of file video.c.