From 23b489960e7c71811d6e2da854d0e7389a41b79f Mon Sep 17 00:00:00 2001 From: Gutawer Date: Thu, 14 Sep 2023 18:31:53 +0100 Subject: [PATCH] - put DTA_Localize at the end of the enum for backwards compat with integer usage --- src/common/2d/v_draw.h | 2 +- wadsrc/static/zscript/engine/base.zs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/2d/v_draw.h b/src/common/2d/v_draw.h index c2503a543dc..97668d97c67 100644 --- a/src/common/2d/v_draw.h +++ b/src/common/2d/v_draw.h @@ -100,7 +100,6 @@ enum // For DrawText calls: DTA_TextLen, // stop after this many characters, even if \0 not hit - DTA_Localize, // localize text DTA_CellX, // horizontal size of character cell DTA_CellY, // vertical size of character cell @@ -133,6 +132,7 @@ enum DTA_Indexed, // Use an indexed texture combined with the given translation. DTA_CleanTop, // Like DTA_Clean but aligns to the top of the screen instead of the center. DTA_NoOffset, // Ignore 2D drawer's offset. + DTA_Localize, // localize drawn string, for DrawText only }; diff --git a/wadsrc/static/zscript/engine/base.zs b/wadsrc/static/zscript/engine/base.zs index b313bc1e03b..dd9813ae6bd 100644 --- a/wadsrc/static/zscript/engine/base.zs +++ b/wadsrc/static/zscript/engine/base.zs @@ -430,7 +430,6 @@ enum DrawTextureTags // For DrawText calls only: DTA_TextLen, // stop after this many characters, even if \0 not hit - DTA_Localize, // localize drawn string DTA_CellX, // horizontal size of character cell DTA_CellY, // vertical size of character cell @@ -463,6 +462,7 @@ enum DrawTextureTags DTA_Indexed, // Use an indexed texture combined with the given translation. DTA_CleanTop, // Like DTA_Clean but aligns to the top of the screen instead of the center. DTA_NoOffset, // Ignore 2D drawer's offset. + DTA_Localize, // localize drawn string, for DrawText only };