#0 ~sprite (this=0x7572656220726f66, __in_chrg=) at 2d_graph.cpp:559 554: 555: sprite::~sprite(void) 556: { 557: flag = 0; 558: 559: if(p_surf) 560: p_surf->dec_ref(); 561: } 562: 563: void sprite::fill(tcolor color) 564: { #1 graph_2d::screen_destroy (this=this@entry=0x556ca847f4a0) at 2d_graph.cpp:925 920: } 921: 922: void graph_2d::screen_destroy(void) 923: { 924: if(p_screen) { 925: delete p_screen; 926: p_screen = NULL; 927: } 928: 929: if(p_screen_surface) { 930: delete p_screen_surface; #2 0x0000556ca66974be in graph_2d::screen_regenerate (this=0x556ca847f4a0) at 2d_graph.cpp:902 897: 898: // Obtain the screen from SDL 899: // If we have any screen/surface, release them first 900: bool graph_2d::screen_regenerate(void) 901: { 902: screen_destroy(); 903: 904: bprintf("Init video surface...\n"); 905: SDL_Surface *p_hwscreen = SDL_SetVideoMode(graphics_width, graphics_height, 906: graphics_bpp, sdl_video_flags); 907: #3 0x0000556ca66983ac in graph_2d (fullscreen=true, depth=32, dy=480, dx=640, this=0x556ca847f4a0) at 2d_graph.h:761 756: bprintf("SDL Init..."); 757: SDL_Init(SDL_INIT_VIDEO); 758: 759: /* Create new screen */ 760: bprintf("Seting up screen %dx%d, color depth %d bits, fullscreen = %d...",dx, dy, depth, fullscreen); 761: screen_create(0, dx, dy, depth, fullscreen); 762: } 763: 764: ~graph_2d(void) 765: { 766: SDL_Quit(); #4 graphics_start (dx=640, dy=480, depth=32, fullscreen=) at 2d_graph.cpp:1216 1211: FONT *p_font = NULL; 1212: 1213: void graphics_start(tpos dx, tpos dy, int depth, bool fullscreen) 1214: { 1215: if(!p_grf) { 1216: p_grf = new GRAPH_2D(dx, dy, depth, fullscreen); 1217: } else { 1218: p_grf->screen_resize(dx, dy); 1219: } 1220: 1221: if(!p_font) { #5 0x0000556ca669a205 in berusky_config::game_screen_set () at berusky.cpp:158 153: } 154: else { 155: original_size_set(); 156: } 157: 158: graphics_start(GAME_RESOLUTION_X, GAME_RESOLUTION_Y, SCREEN_DEPTH, FULLSCREEN); 159: 160: // Save the recent double size state 161: set_doublesize(INI_FILE, DOUBLE_SIZE); 162: } 163: #6 0x0000556ca66c776a in run_game (gmode=MENU, p_garg=0x0, p_dir=0x7ffd2a654540) at main.cpp:102 97: } 98: else { 99: berusky_config::user_level_config_load(INI_FILE); 100: } 101: 102: berusky_config::game_screen_set(); 103: 104: #define START_LEN 400 105: next_time = SDL_GetTicks() + START_LEN; 106: 107: /* Load&draw logos */ #7 0x0000556ca6694db6 in main (argc=1, argv=0x7ffd2a65b648) at main.cpp:331 326: dir.load(INI_FILE); 327: 328: if(gmode == EDITOR) { 329: run_editor(gmode, p_garg, &dir); 330: } else { 331: run_game(gmode, p_garg, &dir); 332: } 333: return 0; 334: } 335: 336: void start_logo_draw(GAME_MODE mode)