Skip to content

Commit 8b9fd91

Browse files
committed
Picture Debug: Replace "Chroma" with "Transparent" as this is the name the editor uses
Also Chroma is not really correct as this is about background removal and not about alpha transparency. Cell index is now 1-based to match what the editor displays
1 parent eff8b8e commit 8b9fd91

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/window_debug_picture.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void Window_DebugPictureInfo::Refresh() {
172172
// Common Flags
173173
std::vector<FlagInfo> flags = {
174174
{ "Fixed", d.fixed_to_map },
175-
{ "Chroma", d.use_transparent_color },
175+
{ "Transparent", d.use_transparent_color },
176176
{ "Tint", d.flags.affected_by_tint },
177177
{ "Flash", d.flags.affected_by_flash },
178178
{ "Shake", d.flags.affected_by_shake },
@@ -192,7 +192,8 @@ void Window_DebugPictureInfo::Refresh() {
192192
y = DrawLine(y, "File", name_str);
193193

194194
if (d.spritesheet_cols > 1 || d.spritesheet_rows > 1) {
195-
std::string cell_str = fmt::format("#{} ({}x{})", d.spritesheet_frame, d.spritesheet_cols, d.spritesheet_rows);
195+
// The editor frame number is 1-based so the user should see the expected value here
196+
std::string cell_str = fmt::format("#{} ({}x{})", d.spritesheet_frame + 1, d.spritesheet_cols, d.spritesheet_rows);
196197
y = DrawLine(y, "Cell", cell_str);
197198

198199
if (d.spritesheet_speed > 0) {

0 commit comments

Comments
 (0)