// fill the SysCaps structure
//SysCaps sys_caps;
+ sys_caps.multitex = (bool)strstr(ext_str, "GL_ARB_multitexture");
sys_caps.load_transpose = (bool)strstr(ext_str, "GL_ARB_transpose_matrix");
sys_caps.gen_mipmaps = (bool)strstr(ext_str, "GL_SGIS_generate_mipmap");
sys_caps.tex_combine_ops = (bool)strstr(ext_str, "GL_ARB_texture_env_combine");
strcpy(err_buf, "E: ");
va_start(arg_list, str);
- vsnprintf(err_buf+3, ERR_BUF_SIZE, str, arg_list);
+ vsnprintf(err_buf+3, ERR_BUF_SIZE - 3, str, arg_list);
va_end(arg_list);
if(verbosity > 0) {
strcpy(err_buf, "W: ");
va_start(arg_list, str);
- vsnprintf(err_buf+3, ERR_BUF_SIZE, str, arg_list);
+ vsnprintf(err_buf+3, ERR_BUF_SIZE - 3, str, arg_list);
va_end(arg_list);
if(verbosity > 1) {
strcpy(err_buf, "I: ");
va_start(arg_list, str);
- vsnprintf(err_buf+3, ERR_BUF_SIZE, str, arg_list);
+ vsnprintf(err_buf+3, ERR_BUF_SIZE - 3, str, arg_list);
va_end(arg_list);
if(verbosity > 2) {
SDL_ShowCursor(0);
}
- fxwt::set_window_title("The Lab Demos :: Summer Hack");
+ fxwt::set_window_title("The Lab Demos :: Summer Hack (rebuild)");
fxwt::set_display_handler(update_gfx);
fxwt::set_idle_handler(update_gfx);
fxwt::set_keyboard_handler(key_handler);