@@ -167,10 +167,10 @@ ::gpk::error_t draw (::SApplication & app) {
167
167
::gpk::SFramework & framework = app.Framework ;
168
168
::gpk::v2<::gpk::bgra> & fontAtlasView = app.Processed [GAME_TEXTURE_FONT_ATLAS].View ;
169
169
const ::gpk::n2u16 & offscreenMetrics = target.metrics ().Cast <uint16_t >();
170
- ::gpk::textLineDrawAlignedFixedSizeLit (target, app.TextureFontMonochrome.View, fontAtlasView.metrics().Cast<uint16_t>() , lineOffset++, offscreenMetrics.Cast<uint16_t>(), sizeCharCell, textLine0, ::gpk::SColorBGRA{0 , app.Framework .FrameInfo .FrameNumber % 0xFF , 0xFFU , 0xFFU });
171
- ::gpk::textLineDrawAlignedFixedSizeLit (target, app.TextureFontMonochrome.View, fontAtlasView.metrics().Cast<uint16_t>() , lineOffset++, offscreenMetrics.Cast<uint16_t>(), sizeCharCell, textLine1, ::gpk::SColorBGRA{app.Framework .FrameInfo .FrameNumber % 0xFFU , 0xFFU , 0 , 0xFFU });
170
+ ::gpk::textLineDrawAlignedFixedSizeLit (target, app.TextureFontMonochrome.View, fontAtlasView.metrics(), lineOffset++, offscreenMetrics.Cast<uint16_t>(), sizeCharCell, textLine0, ::gpk::SColorBGRA{0 , app.Framework .FrameInfo .FrameNumber % 0xFF , 0xFFU , 0xFFU });
171
+ ::gpk::textLineDrawAlignedFixedSizeLit (target, app.TextureFontMonochrome.View, fontAtlasView.metrics(), lineOffset++, offscreenMetrics.Cast<uint16_t>(), sizeCharCell, textLine1, ::gpk::SColorBGRA{app.Framework .FrameInfo .FrameNumber % 0xFFU , 0xFFU , 0 , 0xFFU });
172
172
::gpk::textLineDrawAlignedFixedSize (target, fontAtlasView, lineOffset = offscreenMetrics.y / 16 - 1 , offscreenMetrics, sizeCharCell, textLine2);
173
- ::gpk::textLineDrawAlignedFixedSizeLit (target, app.TextureFontMonochrome.View, fontAtlasView.metrics().Cast<uint16_t>() , --lineOffset, offscreenMetrics, sizeCharCell, weaponProperties[app.Game.Ships.Weapon[0].IndexProperties].Name, ::gpk::SColorBGRA{app.Framework .FrameInfo .FrameNumber % 0xFFU , 0xFFU , 0 , 0xFFU });
173
+ ::gpk::textLineDrawAlignedFixedSizeLit (target, app.TextureFontMonochrome.View, fontAtlasView.metrics(), --lineOffset, offscreenMetrics, sizeCharCell, weaponProperties[app.Game.Ships.Weapon[0].IndexProperties].Name, ::gpk::SColorBGRA{app.Framework .FrameInfo .FrameNumber % 0xFFU , 0xFFU , 0 , 0xFFU });
174
174
if (app.Debugging ) {
175
175
::gpk::STimer & timer = framework.Timer ;
176
176
char buffer [512 ] = {};
0 commit comments