Commit d3894234 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Kill HTMLColor2RGB related warnings

parent 94d23a21
......@@ -26,7 +26,7 @@
#include <cstring>
#include <cstdio>
static bool HTMLColor2RGB(const char *htmlColor, uint8_t *r, uint8_t *g, uint8_t *b)
static inline bool HTMLColor2RGB(const char *htmlColor, unsigned *r, unsigned *g, unsigned *b)
{
if (!htmlColor)
return false;
......
......@@ -629,7 +629,7 @@ bool VLCHolderWnd::Create(HWND hWndParent)
void VLCHolderWnd::PreRegisterWindowClass(WNDCLASS* wc)
{
if( !_hBgBrush){
BYTE r = 0, g = 0, b = 0;
unsigned r = 0, g = 0, b = 0;
HTMLColor2RGB(PO()->get_bg_color().c_str(), &r, &g, &b);
_hBgBrush = CreateSolidBrush(RGB(r, g, b));
}
......
......@@ -95,7 +95,7 @@ bool VlcPluginXcb::create_windows()
32, 2, (void *) xembed_info_buf);
colormap = screen->default_colormap;
uint8_t r = 0, g = 0, b = 0;
unsigned r = 0, g = 0, b = 0;
HTMLColor2RGB(get_bg_color().c_str(), &r, &g, &b);
xcb_alloc_color_reply_t *reply = xcb_alloc_color_reply(conn,
xcb_alloc_color(conn, colormap,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment