Changeset 0edef06 in buchla-emu for emu/ser.c


Ignore:
Timestamp:
08/06/2017 08:20:22 AM (9 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
3523847
Parents:
59ea67d
Message:

Configurable font file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emu/ser.c

    r59ea67d r0edef06  
    3737#define CON_FGR ((SDL_Color){ .r = 255, .b = 255, .g = 255, .a = 255 })
    3838
    39 #define CON_FONT "ttf/vera-sans-mono.ttf"
    40 
    4139#define REG_IER_ISR 0
    4240#define REG_CFR_SR  1
     
    287285        SDL_AtomicSet(&frame, 1);
    288286
    289         SDL_RWops *ops = SDL_RWFromFile(CON_FONT, "rb");
     287        SDL_RWops *ops = SDL_RWFromFile(font, "rb");
    290288
    291289        if (ops == NULL) {
    292                 fail("error while opening font file " CON_FONT ": %s", SDL_GetError());
     290                fail("error while opening font file %s: %s", font, SDL_GetError());
    293291        }
    294292
     
    296294
    297295        if (fon == NULL) {
    298                 fail("error while loading font file " CON_FONT ": %s", TTF_GetError());
     296                fail("error while loading font file %s: %s", font, TTF_GetError());
    299297        }
    300298
Note: See TracChangeset for help on using the changeset viewer.