process 2 sheets for font gfx data in message editor

This commit is contained in:
scawful
2024-10-05 11:06:58 -04:00
parent 9657c5c499
commit 29c2efd287
2 changed files with 2 additions and 3 deletions

View File

@@ -14,6 +14,7 @@
#include "app/gui/canvas.h"
#include "app/gui/style.h"
#include "app/rom.h"
#include "imgui.h"
namespace yaze {
namespace app {
@@ -53,7 +54,7 @@ absl::Status MessageEditor::Initialize() {
for (int i = 0; i < 0x4000; i++) {
data[i] = rom()->data()[kGfxFont + i];
}
font_gfx16_data_ = gfx::SnesTo8bppSheet(data, /*bpp=*/2);
font_gfx16_data_ = gfx::SnesTo8bppSheet(data, /*bpp=*/2, /*num_sheets=*/2);
// 4bpp
RETURN_IF_ERROR(Renderer::GetInstance().CreateAndRenderBitmap(
@@ -253,7 +254,6 @@ void MessageEditor::DrawTextCommands() {
}
}
// TODO: Fix the command parsing.
void MessageEditor::ReadAllTextDataV2() {
// Read all text data from the ROM.

View File

@@ -5,7 +5,6 @@
#include <vector>
#include "absl/status/status.h"
#include "absl/strings/str_format.h"
#include "app/editor/message/message_data.h"
#include "app/editor/utils/editor.h"
#include "app/gfx/bitmap.h"