int SDL_iPhoneKeyboardToggle(SDL_Window * window); // toggles the visibility of the onscreen keyboard. Returns 0 on success and -1 on error.
#endif
-void VID_ShowKeyboard(qboolean show)
+static void VID_ShowKeyboard(qboolean show)
{
#ifdef __IPHONEOS__
if (show)
#define MAXFINGERS 11
int multitouch[MAXFINGERS][3];
-qboolean VID_TouchscreenArea(int corner, float px, float py, float pwidth, float pheight, const char *icon, float *resultmove, qboolean *resultbutton, keynum_t key)
+static qboolean VID_TouchscreenArea(int corner, float px, float py, float pwidth, float pheight, const char *icon, float *resultmove, qboolean *resultbutton, keynum_t key)
{
int finger;
float fx, fy, fwidth, fheight;
vid.support.ext_blend_subtract = true;
vid.support.ext_draw_range_elements = true;
vid.support.ext_framebuffer_object = false;//true;
+ vid.support.ext_packed_depth_stencil = false;
vid.support.ext_stencil_two_side = false;
vid.support.ext_texture_3d = SDL_GL_ExtensionSupported("GL_OES_texture_3D");
vid.support.ext_texture_compression_s3tc = SDL_GL_ExtensionSupported("GL_EXT_texture_compression_s3tc");
// reallocate with malloc, as this is in tempmempool (do not want)
xpm = data;
- data = malloc(width * height * 4);
+ data = (char *) malloc(width * height * 4);
memcpy(data, xpm, width * height * 4);
Mem_Free(xpm);
xpm = NULL;
static long netwm_icon[MAX_NETWM_ICON];
int pos = 0;
int i = 1;
+ char vabuf[1024];
while(data)
{
}
++i;
Mem_Free(data);
- data = (char *) loadimagepixelsbgra(va("darkplaces-icon%d", i), false, false, false, NULL);
+ data = (char *) loadimagepixelsbgra(va(vabuf, sizeof(vabuf), "darkplaces-icon%d", i), false, false, false, NULL);
}
info.info.x11.lock_func();
version->major, version->minor, version->patch );
}
-qboolean VID_InitModeGL(viddef_mode_t *mode)
+static qboolean VID_InitModeGL(viddef_mode_t *mode)
{
int i;
#if SETVIDEOMODE
extern cvar_t gl_info_platform;
extern cvar_t gl_info_driver;
-qboolean VID_InitModeSoft(viddef_mode_t *mode)
+static qboolean VID_InitModeSoft(viddef_mode_t *mode)
{
#if SETVIDEOMODE
int flags = SDL_HWSURFACE;