]> git.vomp.tv Git - vompclient.git/commitdiff
Some fixes for raspberry pi compilation
authorMarten Richter <marten.richter@freenet.de>
Tue, 23 Dec 2014 08:52:56 +0000 (09:52 +0100)
committerMarten Richter <marten.richter@freenet.de>
Tue, 23 Dec 2014 08:52:56 +0000 (09:52 +0100)
osdopenvg.cc
surfacevector.cc

index 90f0d37af644ae2cde9a27dd63c2a6d292cc9d89..584d337e2dbaee75219ccf547cd42d150a75c466 100644 (file)
@@ -1191,7 +1191,7 @@ unsigned int OsdOpenVG::handleTask(OpenVGCommand& command)
        case OVGcreateImageMemory: {//imcount++;
                PictureInfo *info = (PictureInfo*) command.data;
                VGImage handle;
-               Log::getInstance()->log("OSD", Log::DEBUG, "TVMedia OVGcreateImageMemory %d",imcount);
+               //Log::getInstance()->log("OSD", Log::DEBUG, "TVMedia OVGcreateImageMemory %d",imcount);
                handle=vgCreateImage(VG_sABGR_8888,info->width,info->height,VG_IMAGE_QUALITY_BETTER);
                vgImageSubData(handle,info->image,info->width*4,
                                                        VG_sABGR_8888,0,0,info->width,info->height);
@@ -1204,7 +1204,7 @@ unsigned int OsdOpenVG::handleTask(OpenVGCommand& command)
                // We have a pictures! send a message to ourself, to switch to gui thread
                m->from=this;
                m->to=Command::getInstance();
-               m->parameter = handle;
+               m->parameter.handle = handle;
                if (!static_image) {
                        m->message=Message::NEW_PICTURE;
                        m->tag = info->lindex;
@@ -1222,7 +1222,7 @@ unsigned int OsdOpenVG::handleTask(OpenVGCommand& command)
                VGImage handle;
 
                handle=vgCreateImage(VG_sABGR_8888,info->width,info->height,VG_IMAGE_QUALITY_BETTER);
-               Log::getInstance()->log("OSD", Log::DEBUG, "TVMedia OVGcreateEGLImage %d %d %x %d",info->width,info->height, handle,imcount);
+//             Log::getInstance()->log("OSD", Log::DEBUG, "TVMedia OVGcreateEGLImage %d %d %x %d",info->width,info->height, handle,imcount);
 
                info->handle = handle;
                info->reference =  eglCreateImageKHR(egl_display, egl_context, EGL_VG_PARENT_IMAGE_KHR, (EGLClientBuffer)handle, NULL);
index a511353328192e1612362c88ce5ca45958b097ef..720e99446d60e0513acab6a5fe83c9f0bacb0a92 100644 (file)
@@ -80,11 +80,11 @@ int SurfaceVector::drawText(const char* text, int x, int y, int width, const Dra
        int chars=0;
        commands.resize(commands_size+strlen(text));
 #ifndef WIN32
-       num_bytes=mbrtowc(&tempo, run, length, &state);
        mbstate_t state;
        wchar_t tempo;
        size_t num_bytes = 1;
        memset((void*)&state,0,sizeof(state));
+       num_bytes=mbrtowc(&tempo, run, length, &state);
 
        while (num_bytes!=((size_t) -1) && num_bytes!=((size_t) -2) && length>0)
        {