From 685f36af410f29d04338ec11d3049bdf46c3eb5d Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 11 Mar 2021 22:35:57 +0800 Subject: [PATCH] commit that shows the bug fixed --- services/graphics-server/src/api/text.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/graphics-server/src/api/text.rs b/services/graphics-server/src/api/text.rs index f3a92bed4..b8d196100 100644 --- a/services/graphics-server/src/api/text.rs +++ b/services/graphics-server/src/api/text.rs @@ -62,7 +62,6 @@ pub struct TextView { pub dry_run: bool, // set to true if no drawing is desired and we just want to compute the bounds pub style: GlyphStyle, - pub text: xous::String::<3072>, pub cursor: Cursor, pub insertion: Option, // this is the insertion point offset, if it's to be drawn, on the string pub ellipsis: bool, @@ -78,6 +77,8 @@ pub struct TextView { canvas: Gid, // GID of the canvas to draw on pub clip_rect: Option, // this is set by the GAM to the canvas' clip_rect; needed by gfx for drawing. Note this is in screen coordinates. + + pub text: xous::String::<3072>, } impl TextView { pub fn new(canvas: Gid, bounds_hint: TextBounds) -> Self {