[MPlayer-cvslog] r35090 - in trunk/gui/win32: gui.c interface.c skinload.c
ib
subversion at mplayerhq.hu
Wed Aug 15 15:00:44 CEST 2012
Author: ib
Date: Wed Aug 15 15:00:44 2012
New Revision: 35090
Log:
Fix compiler warnings (comparison between signed and unsigned).
Modified:
trunk/gui/win32/gui.c
trunk/gui/win32/interface.c
trunk/gui/win32/skinload.c
Modified: trunk/gui/win32/gui.c
==============================================================================
--- trunk/gui/win32/gui.c Wed Aug 15 14:36:38 2012 (r35089)
+++ trunk/gui/win32/gui.c Wed Aug 15 15:00:44 2012 (r35090)
@@ -596,7 +596,7 @@ static LRESULT CALLBACK VideoProc(HWND h
}
case WM_WINDOWPOSCHANGED:
{
- int tmpheight=0;
+ uint32_t tmpheight=0;
static uint32_t rect_width;
static uint32_t rect_height;
RECT rd;
@@ -652,7 +652,7 @@ static LRESULT CALLBACK VideoProc(HWND h
height = rect.bottom - rect.top;
if(guiInfo.Playing == GUI_STOP)
{
- int i;
+ unsigned int i;
window *desc = NULL;
for (i=0; i<gui->skin->windowcount; i++)
@@ -1332,7 +1332,7 @@ static void maketransparent(HWND hwnd, C
static int window_render(gui_t *gui, HWND hWnd, HDC hdc, window_priv_t *priv, window *desc, BITMAPINFO binfo)
{
- int i;
+ unsigned int i;
SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR) gui);
(gui->window_priv_count)++;
gui->window_priv = realloc(gui->window_priv, sizeof(window_priv_t *) * gui->window_priv_count);
@@ -1380,7 +1380,8 @@ int create_videowindow(gui_t *gui)
BITMAPINFO binfo;
window_priv_t *priv = NULL;
window *desc = NULL;
- int i, x = -1, y = -1;
+ unsigned int i;
+ int x = -1, y = -1;
vo_colorkey = 0xff00ff;
for (i=0; i<gui->skin->windowcount; i++)
Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c Wed Aug 15 14:36:38 2012 (r35089)
+++ trunk/gui/win32/interface.c Wed Aug 15 15:00:44 2012 (r35090)
@@ -927,7 +927,7 @@ static int update_videowindow(void)
if(!guiInfo.Playing)
{
window *desc = NULL;
- int i;
+ unsigned int i;
for (i=0; i<mygui->skin->windowcount; i++)
if(mygui->skin->windows[i]->type == wiVideo)
Modified: trunk/gui/win32/skinload.c
==============================================================================
--- trunk/gui/win32/skinload.c Wed Aug 15 14:36:38 2012 (r35089)
+++ trunk/gui/win32/skinload.c Wed Aug 15 15:00:44 2012 (r35090)
@@ -104,7 +104,7 @@ static char *geteventname(int event)
/* reads a complete image as is into image buffer */
static image *pngRead(skin_t *skin, const char *fname)
{
- int i;
+ unsigned int i;
guiImage bmp;
image *bf;
char *filename = NULL;
More information about the MPlayer-cvslog
mailing list