Skip to content

Commit

Permalink
Add a border to the texts in the flixel sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 authored Jan 3, 2025
1 parent fe3c7a2 commit 6ae9a58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions samples/flixel/source/VideoState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,17 @@ class VideoState extends FlxState

add(video);

versionInfo = new FlxText(10, FlxG.height - 10, 0, 'LibVLC ${Handle.version}', 16);
versionInfo = new FlxText(10, FlxG.height - 10, 0, 'LibVLC ${Handle.version}', 17);
versionInfo.setBorderStyle(OUTLINE, FlxColor.BLACK, 2);
versionInfo.font = FlxAssets.FONT_DEBUGGER;
versionInfo.active = false;
versionInfo.alignment = JUSTIFY;
versionInfo.antialiasing = true;
versionInfo.y -= versionInfo.height;
add(versionInfo);

fpsInfo = new FlxText(10, 10, 0, 'FPS 0', 16);
fpsInfo = new FlxText(10, 10, 0, 'FPS 0', 17);
fpsInfo.setBorderStyle(OUTLINE, FlxColor.BLACK, 2);
fpsInfo.font = FlxAssets.FONT_DEBUGGER;
fpsInfo.active = false;
fpsInfo.alignment = JUSTIFY;
Expand Down

0 comments on commit 6ae9a58

Please sign in to comment.