From: caro Date: Tue, 13 Oct 2009 17:27:49 +0000 (+0000) Subject: fix compilation on Windows CE X-Git-Tag: accepted/2.0/20130306.225542~242^2~2265 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4ba959b03c3d6931b1610e8979ccf6695f68853;p=profile%2Fivi%2Fevas.git fix compilation on Windows CE git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@43055 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/engines/software_16_wince/evas_wince_fb_buffer.c b/src/modules/engines/software_16_wince/evas_wince_fb_buffer.c index 84cf484..8d7905d 100644 --- a/src/modules/engines/software_16_wince/evas_wince_fb_buffer.c +++ b/src/modules/engines/software_16_wince/evas_wince_fb_buffer.c @@ -51,7 +51,7 @@ _evas_software_wince_gxinfo_init(HDC dc, int *width, int *height, void **buffer) (char *) &gxInfo); if (result <= 0) { - ERROR("[Engine] [WinCE FB] ExtEscape() with GETGXINFO failed"); + fprintf(stderr, "[Engine] [WinCE FB] ExtEscape() with GETGXINFO failed\n"); return 0; } @@ -79,7 +79,7 @@ evas_software_wince_fb_init(HWND window, dc = GetDC (window); if (!dc) { - ERROR("[Engine] [WinCE FB] Can not get DC"); + fprintf(stderr, "[Engine] [WinCE FB] Can not get DC\n"); free(priv); return NULL; } @@ -102,9 +102,9 @@ evas_software_wince_fb_init(HWND window, if ((priv->width != width) || (priv->height != height)) { - ERROR("[Engine] [WinCE FB] Size mismatch"); - ERROR("[Engine] [WinCE FB] asked: %dx%d", width, height); - ERROR("[Engine] [WinCE FB] got : %dx%d", priv->width, priv->height); + fprintf(stderr, "[Engine] [WinCE FB] Size mismatch\n"); + fprintf(stderr, "[Engine] [WinCE FB] asked: %dx%d\n", width, height); + fprintf(stderr, "[Engine] [WinCE FB] got : %dx%d\n", priv->width, priv->height); ReleaseDC(window, dc); free(priv); return NULL; @@ -119,8 +119,8 @@ evas_software_wince_fb_init(HWND window, (rfbi.wBPP != 16) || (rfbi.wFormat != 1)) { - ERRPR("[Engine] [WinCE FB] ExtEscape() with GETRAWFRAMEBUFFER failed"); - ERROR("[Engine] [WinCE FB] trying ExtEscape() with GETGXINFO"); + fprintf(stderr, "[Engine] [WinCE FB] ExtEscape() with GETRAWFRAMEBUFFER failed\n"); + fprintf(stderr, "[Engine] [WinCE FB] trying ExtEscape() with GETGXINFO\n"); if (!_evas_software_wince_gxinfo_init(dc, &priv->width, &priv->height, &priv->buffer)) { ReleaseDC(window, dc); @@ -139,9 +139,9 @@ evas_software_wince_fb_init(HWND window, if ((priv->width != width) || (priv->height != height)) { - ERROR("[Engine] [WinCE FB] Size mismatch"); - ERROR("[Engine] [WinCE FB] asked: %dx%d", width, height); - ERROR("[Engine] [WinCE FB] got : %dx%d", priv->width, priv->height); + fprintf(stderr, "[Engine] [WinCE FB] Size mismatch\n"); + fprintf(stderr, "[Engine] [WinCE FB] asked: %dx%d\n", width, height); + fprintf(stderr, "[Engine] [WinCE FB] got : %dx%d\n", priv->width, priv->height); ReleaseDC(window, dc); free(priv); return NULL; diff --git a/src/modules/engines/software_16_wince/evas_wince_gapi_buffer.c b/src/modules/engines/software_16_wince/evas_wince_gapi_buffer.c index ecb4795..0c5b04c 100644 --- a/src/modules/engines/software_16_wince/evas_wince_gapi_buffer.c +++ b/src/modules/engines/software_16_wince/evas_wince_gapi_buffer.c @@ -110,7 +110,7 @@ evas_software_wince_gapi_init(HWND window, gapi_lib = LoadLibrary(L"gx.dll"); if (!gapi_lib) { - ERROR("[Engine] [WinCE GAPI] Can not load gx.dll"); + fprintf(stderr, "[Engine] [WinCE GAPI] Can not load gx.dll\n"); goto free_priv; } } @@ -131,13 +131,13 @@ evas_software_wince_gapi_init(HWND window, !suspend || !resume) { - ERROR("[Engine] [WinCE GAPI] Can not find valid symbols"); + fprintf(stderr, "[Engine] [WinCE GAPI] Can not find valid symbols\n"); goto free_lib; } if (!display_open(window, GX_FULLSCREEN)) { - ERROR("[Engine] [WinCE GAPI] Can not open display"); + fprintf(stderr, "[Engine] [WinCE GAPI] Can not open display\n"); goto free_lib; } @@ -146,7 +146,7 @@ evas_software_wince_gapi_init(HWND window, // verify pixel format if(!(prop.ffFormat & kfDirect565) || (prop.cBPP != 16)) { - ERROR("[Engine] [WinCE GAPI] display format mismatch"); + fprintf(stderr, "[Engine] [WinCE GAPI] display format mismatch\n"); goto close_display; } @@ -154,7 +154,7 @@ evas_software_wince_gapi_init(HWND window, if ((GetSystemMetrics(SM_CXSCREEN) != (int)prop.cxWidth) || (GetSystemMetrics(SM_CYSCREEN) != (int)prop.cyHeight)) { - ERROR("[Engine] [WinCE GAPI] display size mismatch"); + fprintf(stderr, "[Engine] [WinCE GAPI] display size mismatch\n"); goto close_display; } @@ -221,7 +221,7 @@ v | | dc = GetDC (window); if (!dc) { - ERROR("[Engine] [WinCE GAPI] Can not get device"); + fprintf(stderr, "[Engine] [WinCE GAPI] Can not get device\n"); goto close_display; } @@ -230,7 +230,7 @@ v | | (char *) &gxInfo); if (result <= 0) { - ERROR("[Engine] [WinCE GAPI] ExtEscape failed"); + fprintf(stderr, "[Engine] [WinCE GAPI] ExtEscape failed\n"); ReleaseDC(window, dc); goto close_display; } @@ -249,9 +249,9 @@ v | | if ((priv->width != width) || (priv->height != height)) { - WARN("[Engine] [WinCE GAPI] Size mismatch"); - WARN("[Engine] [WinCE GAPI] asked: %dx%d", width, height); - WARN("[Engine] [WinCE GAPI] got : %dx%d", priv->width, priv->height); + fprintf(stderr, "[Engine] [WinCE GAPI] Size mismatch\n"); + fprintf(stderr, "[Engine] [WinCE GAPI] asked: %dx%d\n", width, height); + fprintf(stderr, "[Engine] [WinCE GAPI] got : %dx%d\n", priv->width, priv->height); goto close_display; }