Atrinik Client 2.5
Functions
client/video.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

int video_get_bpp ()
int video_set_size ()
uint32 get_video_flags ()
int video_fullscreen_toggle (SDL_Surface **surface, uint32 *flags)

Detailed Description

Video-related code.

Definition in file video.c.


Function Documentation

uint32 get_video_flags ( )

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

Returns:
The flags

Definition at line 63 of file video.c.

int video_fullscreen_toggle ( SDL_Surface **  surface,
uint32 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.

Parameters:
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.
Returns:
Non-zero on success, zero on failure.

Definition at line 89 of file video.c.

int video_get_bpp ( )

Get the bits per pixel value to use

Returns:
Bits per pixel.

Definition at line 35 of file video.c.

int video_set_size ( )

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

Returns:
1 on success, 0 on failure.

Definition at line 43 of file video.c.