fix autoid.

fix skewed grey captures.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4964 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2015-08-14 21:04:00 +00:00
parent 4116da6298
commit c7b1e544ee
2 changed files with 5 additions and 2 deletions

View File

@ -3553,7 +3553,10 @@ static void Media_RecordFilm (char *recordingname, qboolean demo)
pbo_format = TF_INVALID;
if (qrenderer == QR_OPENGL && !gl_config.gles && gl_config.glversion >= 2.1)
{ //both tgas and vfw favour bgr24, so lets get the gl drivers to suffer instead of us.
pbo_format = TF_BGR24;
if (vid.fbpwidth & 3)
pbo_format = TF_BGRA32; //don't bother changing pack alignment, just use something that is guarenteed to not need anything.
else
pbo_format = TF_BGR24;
}
#endif

View File

@ -1630,7 +1630,7 @@ static void SCR_DrawAutoID(vec3_t org, player_info_t *pl, qboolean isteam)
//display health bar
if (scr_autoid_health.ival)
{
float frac = health / 100;
float frac = health / 100.0;
if (frac < 0)
frac = 0;
r = frac;