ui: move FONT_WIDTH/HEIGHT to vgafont.h

Since those values are related to the VGA font, it make sense to move
them here.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau
2026-02-23 15:52:23 +01:00
parent 759c456b1d
commit 690fbfcd98
4 changed files with 7 additions and 6 deletions

View File

@@ -9,11 +9,6 @@
#include "qemu/coroutine.h"
#include "qemu/timer.h"
#include "vgafont.h"
#define FONT_HEIGHT 16
#define FONT_WIDTH 8
struct QemuConsole {
Object parent;

View File

@@ -10,6 +10,7 @@
#include "qemu/option.h"
#include "qemu/queue.h"
#include "ui/console.h"
#include "ui/vgafont.h"
#include "pixman.h"
#include "trace.h"

View File

@@ -24,6 +24,7 @@
#include "qemu/osdep.h"
#include "ui/console.h"
#include "ui/vgafont.h"
#include "hw/core/qdev.h"
#include "qapi/error.h"
#include "qapi/qapi-commands-ui.h"

View File

@@ -6,6 +6,10 @@
#include <stdint.h>
extern const uint8_t vgafont16[256 * 16];
/* supports only vga 8x16 */
#define FONT_WIDTH 8
#define FONT_HEIGHT 16
extern const uint8_t vgafont16[256 * FONT_HEIGHT];
#endif