Atrinik Client  4.0
Functions
misc.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

void browser_open (const char *url)
 
char * package_get_version_full (char *dst, size_t dstlen)
 
char * package_get_version_partial (char *dst, size_t dstlen)
 
int bmp2png (const char *path)
 
void screenshot_create (SDL_Surface *surface)
 

Detailed Description

Miscellaneous functions.

Definition in file misc.c.

Function Documentation

int bmp2png ( const char *  path)

Convert BMP file to PNG, if supported by the platform.

Parameters
pathFile to convert.
Returns
1 if the file was converted to PNG, 0 otherwise.

Definition at line 108 of file misc.c.

void browser_open ( const char *  url)

Opens an url in the system's default browser.

Parameters
urlURL to open.

Definition at line 37 of file misc.c.

char* package_get_version_full ( char *  dst,
size_t  dstlen 
)

Get the full package version as string.

If patch version is 0, it will not be appended to the version string.

Parameters
dstWhere to store the version.
dstlenSize of dst.
Returns
'dst'.

Definition at line 69 of file misc.c.

char* package_get_version_partial ( char *  dst,
size_t  dstlen 
)

Get the partial package version. This means that the patch version will not be included, even if it's not 0.

Parameters
dstWhere to store the version.
dstlenSize of dst.
Returns
'dst'

Definition at line 89 of file misc.c.

void screenshot_create ( SDL_Surface *  surface)

Create a screenshot of the specified surface.

Parameters
surfaceThe surface to take a screenshot of.

Definition at line 132 of file misc.c.