Skip to content

Commit d61c502

Browse files
committed
update to new qor compat
1 parent bb51a92 commit d61c502

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/HUD.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ void HUD :: logic_self(Freq::Time t)
4545
Color c = Color::white();
4646
if(i == 1)
4747
c = Color::black();
48-
cairo->set_source_rgba(c.r(), c.g(), c.b(), c.a());
48+
//cairo->set_source_rgba(c.r(), c.g(), c.b(), c.a());
4949
m_pCanvas->text(
5050
boost::to_upper_copy(ch->weapon()->name()) + " " + to_string(+ ch->clip()) + " / " + to_string(ch->ammo()),
51+
c,
5152
vec2(sz/2.0f - i*shadow, m_pWindow->size().y - sz/2.0f + i*shadow)
5253
);
5354
if(i == 0){
@@ -57,13 +58,14 @@ void HUD :: logic_self(Freq::Time t)
5758
ch->hp_percent() / 100.0f
5859
);
5960
}
60-
cairo->set_source_rgba(c.r(), c.g(), c.b(), c.a());
61+
//cairo->set_source_rgba(c.r(), c.g(), c.b(), c.a());
6162
cairo->set_font_size(
6263
sz + (1.0f - ch->hp_percent() / 100.0f) * 4.0f * (1.0f+sin(m_Fade * K_TAU)
6364
//+ sz * (1.0f - ch->hp_percent() / 100.0f)
6465
));
6566
m_pCanvas->text(
6667
to_string(ch->hp_percent()) + "%",
68+
c,
6769
vec2(m_pWindow->size().x - sz/2.0f - i*shadow, m_pWindow->size().y - sz/2.0f + i*shadow),
6870
Canvas::Align::RIGHT
6971
);

0 commit comments

Comments
 (0)