1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Add TextPos relations.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-12-23 19:14:58 +01:00
parent 907acf1e18
commit ad0875aaac

View file

@ -46,6 +46,16 @@ struct TextChar
uint8_t vgacolor; // Format of <sortix/vga.h>
};
static inline bool IsTextPosBeforeTextPos(const TextPos& a, const TextPos& b)
{
return a.y < b.y || (a.y == b.y && a.x < b.x);
}
static inline bool IsTextPosAfterTextPos(const TextPos& a, const TextPos& b)
{
return a.y > b.y || (a.y == b.y && a.x > b.x);
}
class TextBuffer
{
public: