wip: good text support (scrolling not quite working rn)
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define FONT_SIZE 13
|
||||
|
||||
struct font {
|
||||
uint32_t height;
|
||||
uint32_t width;
|
||||
|
@ -5,9 +5,10 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define SCREEN_WIDTH 80
|
||||
#define SCREEN_HEIGHT 25
|
||||
#define TERM_BUF ((uint16_t *)0xC03FF000)
|
||||
#define VGA_WIDTH 80
|
||||
#define VGA_HEIGHT 25
|
||||
#define SCREEN_WIDTH 1024
|
||||
#define SCREEN_HEIGHT 768
|
||||
#define TERM_COUNT 10
|
||||
|
||||
struct screen {
|
||||
@ -15,7 +16,7 @@ struct screen {
|
||||
size_t column;
|
||||
uint32_t fg_color;
|
||||
uint32_t bg_color;
|
||||
uint16_t buffer[SCREEN_WIDTH * SCREEN_HEIGHT];
|
||||
uint16_t buffer[VGA_WIDTH * VGA_HEIGHT];
|
||||
uint32_t default_color;
|
||||
char line[256];
|
||||
};
|
||||
|
Reference in New Issue
Block a user