#include "app.h"
#include "options.h"
#include "font.h"
+#include "util.h"
static void txdraw(struct dtx_vertex *v, int vcount, struct dtx_pixmap *pixmap, void *cls);
struct app_screen *cur_scr;
-struct font *font;
+struct font *uifont;
/* available screens */
#define MAX_SCREENS 8
dtx_target_user(txdraw, 0);
- font = malloc_nf(sizeof *font);
+ uifont = malloc_nf(sizeof *uifont);
if(load_font(uifont, "data/uifont.gmp") == -1) {
free(uifont);
return -1;
}
}
if(!cur_scr) {
- app_chscr(&scr_logo);
+ app_chscr(&scr_model);
}
return 0;
putchar('\n');
- save_options(GAME_CFG_FILE);
+ save_options("retroray.cfg");
for(i=0; i<num_screens; i++) {
if(screens[i]->destroy) {
void app_display(void)
{
- static long nframes, interv, prev_msec;
-
time_msec = app_getmsec();
cur_scr->display();
case '\n':
case '\r':
- if(modkeys & GKEY_MOD_ALT) {
- case GKEY_F11:
+ if(modkeys & KEY_MOD_ALT) {
+ case KEY_F11:
app_fullscreen(-1);
return;
}
static void txdraw(struct dtx_vertex *v, int vcount, struct dtx_pixmap *pixmap, void *cls)
{
+ /*
int i, aref, npix;
unsigned char *src, *dest;
struct texture *tex = pixmap->udata;
gaw_restore();
gaw_set_tex2d(0);
+ */
}