windows: just a little cleanup

This commit is contained in:
zeromus 2008-09-26 06:36:18 +00:00
parent 099f683f4a
commit a45b610c70
2 changed files with 8 additions and 13 deletions

View File

@ -1,12 +0,0 @@
#ifndef COLORCONV_H
#define COLORCONV_H
// Convert B5G5R5 color format into R8G8B8 color format
unsigned int ColorConv_B5R5R5ToR8G8B8(const unsigned int color)
{
return (((color&31)<<16)<<3) | // red
((((color>>5)&31)<<8)<<3) | // green
(((color>>10)&31)<<3); // blue
}
#endif // COLORCONV_H

View File

@ -20,11 +20,18 @@
#include "lightView.h"
#include "commctrl.h"
#include "colorctrl.h"
#include "colorconv.h"
#include "gfx3d.h"
#include "resource.h"
#include "debug.h"
// Convert B5G5R5 color format into R8G8B8 color format
unsigned int ColorConv_B5R5R5ToR8G8B8(const unsigned int color)
{
return (((color&31)<<16)<<3) | // red
((((color>>5)&31)<<8)<<3) | // green
(((color>>10)&31)<<3); // blue
}
typedef struct
{
u32 autoup_secs;