char *start_scr_name;
static rtk_draw_ops guigfx = {gui_fill, gui_blit, gui_drawtext, gui_textrect};
char *start_scr_name;
static rtk_draw_ops guigfx = {gui_fill, gui_blit, gui_drawtext, gui_textrect};
load_options("retroray.cfg");
app_resize(opt.xres, opt.yres);
app_vsync(opt.vsync);
load_options("retroray.cfg");
app_resize(opt.xres, opt.yres);
app_vsync(opt.vsync);
- if(numpix > prev_numpix) {
+ printf("reshape(%d, %d)\n", x, y);
+
+ if(!framebuf || numpix > prev_numpix) {
void *tmp;
if(!(tmp = realloc(framebuf, numpix * sizeof *framebuf))) {
errormsg("failed to resize framebuffer to %dx%d\n", x, y);
void *tmp;
if(!(tmp = realloc(framebuf, numpix * sizeof *framebuf))) {
errormsg("failed to resize framebuffer to %dx%d\n", x, y);