windows: just a little cleanup
This commit is contained in:
parent
099f683f4a
commit
a45b610c70
|
@ -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
|
|
|
@ -20,11 +20,18 @@
|
||||||
#include "lightView.h"
|
#include "lightView.h"
|
||||||
#include "commctrl.h"
|
#include "commctrl.h"
|
||||||
#include "colorctrl.h"
|
#include "colorctrl.h"
|
||||||
#include "colorconv.h"
|
|
||||||
#include "gfx3d.h"
|
#include "gfx3d.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "debug.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
|
typedef struct
|
||||||
{
|
{
|
||||||
u32 autoup_secs;
|
u32 autoup_secs;
|
||||||
|
|
Loading…
Reference in New Issue