Skip to content

Commit e21a3b4

Browse files
committed
half
1 parent 4ebf75a commit e21a3b4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/engine/client/cl_scrn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void SCR_DrawConsoleFontUnichar( float x, float y, int ch )
113113
{
114114
glyphInfo_t *glyph = Glyph( ch );
115115
float yadj = glyph->top;
116-
float xadj = ( SCR_ConsoleFontUnicharWidth( ch ) - glyph->xSkip ) / 2.0;
116+
float xadj = ( SCR_ConsoleFontUnicharWidth( ch ) - glyph->xSkip ) * 0.5f;
117117

118118
re.DrawStretchPic( x + xadj, y - yadj, glyph->imageWidth, glyph->imageHeight,
119119
glyph->s, glyph->t,

src/engine/renderer/tr_video.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,10 @@ static void blitVQQuad32fs( roqVideo_t &video, const std::vector<byte> &file )
339339

340340
static void ROQ_GenYUVTables()
341341
{
342-
float t_ub = ( 1.77200f / 2.0f ) * ( float )( 1 << 6 ) + 0.5f;
343-
float t_vr = ( 1.40200f / 2.0f ) * ( float )( 1 << 6 ) + 0.5f;
344-
float t_ug = ( 0.34414f / 2.0f ) * ( float )( 1 << 6 ) + 0.5f;
345-
float t_vg = ( 0.71414f / 2.0f ) * ( float )( 1 << 6 ) + 0.5f;
342+
float t_ub = ( 1.77200f * 0.5f ) * ( float )( 1 << 6 ) + 0.5f;
343+
float t_vr = ( 1.40200f * 0.5f ) * ( float )( 1 << 6 ) + 0.5f;
344+
float t_ug = ( 0.34414f * 0.5f ) * ( float )( 1 << 6 ) + 0.5f;
345+
float t_vg = ( 0.71414f * 0.5f ) * ( float )( 1 << 6 ) + 0.5f;
346346

347347
for ( int i = 0; i < 256; i++ )
348348
{

0 commit comments

Comments
 (0)