mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-22 11:31:16 +00:00
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:
parent
4116da6298
commit
c7b1e544ee
2 changed files with 5 additions and 2 deletions
|
@ -3553,6 +3553,9 @@ static void Media_RecordFilm (char *recordingname, qboolean demo)
|
||||||
pbo_format = TF_INVALID;
|
pbo_format = TF_INVALID;
|
||||||
if (qrenderer == QR_OPENGL && !gl_config.gles && gl_config.glversion >= 2.1)
|
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.
|
{ //both tgas and vfw favour bgr24, so lets get the gl drivers to suffer instead of us.
|
||||||
|
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;
|
pbo_format = TF_BGR24;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1630,7 +1630,7 @@ static void SCR_DrawAutoID(vec3_t org, player_info_t *pl, qboolean isteam)
|
||||||
//display health bar
|
//display health bar
|
||||||
if (scr_autoid_health.ival)
|
if (scr_autoid_health.ival)
|
||||||
{
|
{
|
||||||
float frac = health / 100;
|
float frac = health / 100.0;
|
||||||
if (frac < 0)
|
if (frac < 0)
|
||||||
frac = 0;
|
frac = 0;
|
||||||
r = frac;
|
r = frac;
|
||||||
|
|
Loading…
Reference in a new issue