Skip to content

Commit

Permalink
fix textbox drawing method
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Apr 19, 2024
1 parent 24105e7 commit 77c7a51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fancy_demo/fancy.asc
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,11 @@ DynamicSprite* _create_textbox_with_textspr(Fancy9Piece* f9p, int internal_width
{
if(f9p == null) return null;

spr_over = _create_textbox(internal_width, internal_height, f9p);
DrawingSurface* surf = spr_over.GetDrawingSurface();
surf.DrawImage(f9p.BorderLeft, f9p.BorderTop, text_spr.Graphic);
DynamicSprite* textbox = _create_textbox(internal_width, internal_height, f9p);
DrawingSurface* surf = textbox.GetDrawingSurface();
surf.DrawImage(f9p.BorderLeft, f9p.BorderTop, text_graphic);
surf.Release();
return spr_over;
return textbox;
}

// ----------------------------------------------------------------------
Expand Down

0 comments on commit 77c7a51

Please sign in to comment.