From 856c345feca062fdfc0b177e0de25489fb1b0c06 Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Sat, 15 Mar 2014 02:29:19 +0000 Subject: Extend hge with a 3D Rotation method, it's not tested yet. Fix probable compile errors due to includes. --- hgehelp/hgecolor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hgehelp/hgecolor.cpp') diff --git a/hgehelp/hgecolor.cpp b/hgehelp/hgecolor.cpp index 5ae512d..561a9cc 100644 --- a/hgehelp/hgecolor.cpp +++ b/hgehelp/hgecolor.cpp @@ -7,7 +7,7 @@ */ -#include "../../include/hgecolor.h" +#include "hgecolor.h" #include #ifndef min @@ -50,7 +50,7 @@ void hgeColorHSV::SetHWColor(DWORD col) if (r == maxv) {h = del_B - del_G;} else if (g == maxv) {h = (1.0f / 3.0f) + del_R - del_B;} else if (b == maxv) {h = (2.0f / 3.0f) + del_G - del_R;} - + if (h < 0) h += 1; if (h > 1) h -= 1; } -- cgit v1.2.3