Skip to content
Snippets Groups Projects
Commit fbb95ca7 authored by deuce's avatar deuce
Browse files

Mode numbers can't be over 255 if text_info needs to hold them.

parent de98dd98
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,6 @@
#ifndef _CIOLIB_H_
#define _CIOLIB_H_
#include <limits.h> /* INT_MAX */
#include <string.h> /* size_t */
#include "gen_defs.h"
......@@ -205,7 +204,7 @@ enum text_modes
VESA_132X60 = 196,
/* Custom Mode */
CIOLIB_MODE_CUSTOM = INT_MAX,
CIOLIB_MODE_CUSTOM = 255, // Last mode... if it's over 255, text_info can't hold it.
};
#define COLOR_MODE C80
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment