process 2 sheets for font gfx data in message editor
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
#include "app/gui/canvas.h"
|
#include "app/gui/canvas.h"
|
||||||
#include "app/gui/style.h"
|
#include "app/gui/style.h"
|
||||||
#include "app/rom.h"
|
#include "app/rom.h"
|
||||||
|
#include "imgui.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace app {
|
namespace app {
|
||||||
@@ -53,7 +54,7 @@ absl::Status MessageEditor::Initialize() {
|
|||||||
for (int i = 0; i < 0x4000; i++) {
|
for (int i = 0; i < 0x4000; i++) {
|
||||||
data[i] = rom()->data()[kGfxFont + 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
|
// 4bpp
|
||||||
RETURN_IF_ERROR(Renderer::GetInstance().CreateAndRenderBitmap(
|
RETURN_IF_ERROR(Renderer::GetInstance().CreateAndRenderBitmap(
|
||||||
@@ -253,7 +254,6 @@ void MessageEditor::DrawTextCommands() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// TODO: Fix the command parsing.
|
// TODO: Fix the command parsing.
|
||||||
void MessageEditor::ReadAllTextDataV2() {
|
void MessageEditor::ReadAllTextDataV2() {
|
||||||
// Read all text data from the ROM.
|
// Read all text data from the ROM.
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
#include "absl/strings/str_format.h"
|
|
||||||
#include "app/editor/message/message_data.h"
|
#include "app/editor/message/message_data.h"
|
||||||
#include "app/editor/utils/editor.h"
|
#include "app/editor/utils/editor.h"
|
||||||
#include "app/gfx/bitmap.h"
|
#include "app/gfx/bitmap.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user