mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-13 07:57:23 +00:00
Fix a few comments (#4591)
This commit is contained in:
parent
01a274baf7
commit
e5c210236c
2 changed files with 6 additions and 6 deletions
|
@ -618,7 +618,7 @@ void AddTournamentPlayer( void ) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=======================
|
=======================
|
||||||
RequeueTournamentLoser
|
AddTournamentQueue
|
||||||
|
|
||||||
Add client to end of tournament queue
|
Add client to end of tournament queue
|
||||||
=======================
|
=======================
|
||||||
|
|
|
@ -137,6 +137,10 @@ void R_LoadJPG(const char *filename, unsigned char **pic, int *width, int *heigh
|
||||||
|
|
||||||
/* Step 4: set parameters for decompression */
|
/* Step 4: set parameters for decompression */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Make sure it always converts images to RGB color space. This will
|
||||||
|
* automatically convert 8-bit greyscale images to RGB as well.
|
||||||
|
*/
|
||||||
cinfo.out_color_space = JCS_RGB;
|
cinfo.out_color_space = JCS_RGB;
|
||||||
|
|
||||||
/* Step 5: Start decompressor */
|
/* Step 5: Start decompressor */
|
||||||
|
@ -195,14 +199,10 @@ void R_LoadJPG(const char *filename, unsigned char **pic, int *width, int *heigh
|
||||||
|
|
||||||
buf = out;
|
buf = out;
|
||||||
|
|
||||||
// If we are processing an 8-bit JPEG (greyscale), we'll have to convert
|
// Expand from RGB to RGBA
|
||||||
// the greyscale values to RGBA.
|
|
||||||
sindex = pixelcount * cinfo.output_components;
|
sindex = pixelcount * cinfo.output_components;
|
||||||
dindex = memcount;
|
dindex = memcount;
|
||||||
|
|
||||||
// Only pixelcount number of bytes have been written.
|
|
||||||
// Expand the color values over the rest of the buffer, starting
|
|
||||||
// from the end.
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
buf[--dindex] = 255;
|
buf[--dindex] = 255;
|
||||||
|
|
Loading…
Reference in a new issue