comparison gui/wm/ws.c @ 33315:d3ab6eb6b94b

Remove code with no purpose. Also fixes compiler warning about variable that is assigned but never used.
author reimar
date Sat, 07 May 2011 18:59:15 +0000
parents 284fc94290b9
children 47b5846b20b6
comparison
equal deleted inserted replaced
33314:d30987a7e6cf 33315:d3ab6eb6b94b
1116 win->xImage=NULL; 1116 win->xImage=NULL;
1117 } 1117 }
1118 1118
1119 void wsCreateImage( wsTWindow * win,int Width,int Height ) 1119 void wsCreateImage( wsTWindow * win,int Width,int Height )
1120 { 1120 {
1121 int CompletionType = -1;
1122 if ( wsUseXShm ) 1121 if ( wsUseXShm )
1123 { 1122 {
1124 CompletionType=XShmGetEventBase( wsDisplay ) + ShmCompletion;
1125 win->xImage=XShmCreateImage( wsDisplay,win->VisualInfo.visual, 1123 win->xImage=XShmCreateImage( wsDisplay,win->VisualInfo.visual,
1126 win->VisualInfo.depth,ZPixmap,NULL,&win->Shminfo,Width,Height ); 1124 win->VisualInfo.depth,ZPixmap,NULL,&win->Shminfo,Width,Height );
1127 if ( win->xImage == NULL ) 1125 if ( win->xImage == NULL )
1128 { 1126 {
1129 mp_msg( MSGT_GPLAYER,MSGL_FATAL,MSGTR_WS_ShmError ); 1127 mp_msg( MSGT_GPLAYER,MSGL_FATAL,MSGTR_WS_ShmError );