OSDev.org
https://forum.osdev.org/

[C]Print a character
https://forum.osdev.org/viewtopic.php?f=13&t=31109
Page 2 of 2

Author:  Schol-R-LEA [ Wed Dec 28, 2016 8:38 am ]
Post subject:  Re: [C]Print a character

zenzizenzicube wrote:
Schol-R-LEA wrote:
Code:
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.

Page 2 of 2 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/