Cavestory Mod API
Functions
Video

Functions

CAVESTORY_MOD_API void CSM_Video_SetResolution (int iNewWidth, int iNewHeight, int iNewMagnification=-1)
 Set the game's window resolution. More...
 
CAVESTORY_MOD_API void CSM_Video_GetResolution (int *iWidth, int *iHeight)
 Get the game's window resolution. More...
 

Detailed Description

Function Documentation

◆ CSM_Video_GetResolution()

CAVESTORY_MOD_API void CSM_Video_GetResolution ( int *  iWidth,
int *  iHeight 
)

Get the game's window resolution.

Parameters
iWidthA pointer to hold the resolution width. Can be NULL.
iHeightA pointer to hold the resolution height. Can be NULL.

◆ CSM_Video_SetResolution()

CAVESTORY_MOD_API void CSM_Video_SetResolution ( int  iNewWidth,
int  iNewHeight,
int  iNewMagnification = -1 
)

Set the game's window resolution.

Parameters
iNewWidthThe new width of the window Cannot go below 320.
iNewHeightThe new height of the window. Cannot go below 240.
iNewMagnificationThe new magnification level. Set this to '<= 0' to automatically determine a suitable magnification level.