Skip to content

Commit

Permalink
ecere/gui/Interface:WriteCaption(): Black outline for white caption
Browse files Browse the repository at this point in the history
  • Loading branch information
jerstlouis committed Dec 29, 2023
1 parent 1e2d5b6 commit 7f37284
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ecere/src/gui/Interface.ec
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
namespace gui;

#if defined(ECERE_VANILLA)
#define ECERE_NOTRUETYPE
#endif

#if defined(__EMSCRIPTEN__)
define target = "#canvas";
#endif
Expand Down Expand Up @@ -175,6 +179,10 @@ public:
surface.SetForeground(guiApp.currentSkin.disabledFrontColor);
surface.TextOpacity(false);
}
#if !defined(ECERE_NOTRUETYPE)
if(surface.font && surface.font.outlineSize && surface.foreground.color == white)
surface.outlineColor = black;
#endif
surface.WriteText(x,y, text, strlen(text));
surface.TextOpacity(opacity);
}
Expand Down

0 comments on commit 7f37284

Please sign in to comment.