Page 2 of 2

Re: [C]Print a character

Posted: Wed Dec 28, 2016 8:38 am
by Schol-R-LEA
zenzizenzicube wrote:
Schol-R-LEA wrote:

Code: Select all

typedef struct {
    uint8_t attrib;
    unsigned char glyph;
} TEXT_FRAME;
Shouldn't the character be before the attribute byte in the struct?
Erp. I must have reversed them while editing this, somehow.
bauen1 wrote:Correct me if i'm wrong but should this have the packed attribute ?
You are correct, I spaced on that. Sorry about that. Between these two errors, I feel rather foolish right now.