Mercurial > mplayer.hg
comparison Gui/mplayer/mw.h @ 5919:60cf2bca993f
some bug fix
author | pontscho |
---|---|
date | Wed, 01 May 2002 09:29:06 +0000 |
parents | 2077782d0ca9 |
children | 421781c5b128 |
comparison
equal
deleted
inserted
replaced
5918:dca3016882cf | 5919:60cf2bca993f |
---|---|
164 { | 164 { |
165 case itButton: | 165 case itButton: |
166 PutImage( &item->Bitmap,item->x,item->y,3,item->pressed ); | 166 PutImage( &item->Bitmap,item->x,item->y,3,item->pressed ); |
167 break; | 167 break; |
168 case itPotmeter: | 168 case itPotmeter: |
169 PutImage( &item->Bitmap,item->x,item->y,item->phases,item->phases * ( item->value / 100.0f ) ); | 169 PutImage( &item->Bitmap,item->x,item->y,item->phases,( item->phases - 1 ) * ( item->value / 100.0f ) ); |
170 break; | 170 break; |
171 case itHPotmeter: | 171 case itHPotmeter: |
172 PutImage( &item->Bitmap,item->x,item->y,item->phases,item->phases * ( item->value / 100.0f ) ); | 172 PutImage( &item->Bitmap,item->x,item->y,item->phases,item->phases * ( item->value / 100.0f ) ); |
173 PutImage( &item->Mask,item->x + (int)( ( item->width - item->psx ) * item->value / 100.0f ),item->y,3,item->pressed ); | 173 PutImage( &item->Mask,item->x + (int)( ( item->width - item->psx ) * item->value / 100.0f ),item->y,3,item->pressed ); |
174 break; | 174 break; |
175 case itSLabel: | 175 case itSLabel: |
176 image=fntRender( item->fontid,0,item->width,"%s",item->label ); | 176 image=fntRender( item->fontid,0,item->width,"%s",item->label ); |
177 goto drawrenderedtext; | 177 goto drawrenderedtext; |
178 case itDLabel: | 178 case itDLabel: |
179 image=fntRender( item->fontid,mplTimer%item->width,item->width,"%s",Translate( item->label ) ); | 179 image=fntRender( item->fontid,mplTimer%item->width,item->width,"%s",Translate( item->label ) ); |
180 //// image=fntRender( item->fontid,( mplRedrawTimer / 10 )%item->width,item->width,"%s",Translate( item->label ) ); | |
181 drawrenderedtext: | 180 drawrenderedtext: |
182 PutImage( image,item->x,item->y,1,0 ); | |
183 if ( image ) | 181 if ( image ) |
184 { | 182 { |
183 PutImage( image,item->x,item->y,1,0 ); | |
185 if ( image->Image ) free( image->Image ); | 184 if ( image->Image ) free( image->Image ); |
186 free( image ); | 185 free( image ); |
187 } | 186 } |
188 break; | 187 break; |
189 } | 188 } |
426 case wsPRMouseButton: | 425 case wsPRMouseButton: |
427 mplShowMenu( RX,RY ); | 426 mplShowMenu( RX,RY ); |
428 itemtype=itPRMButton; | 427 itemtype=itPRMButton; |
429 break; | 428 break; |
430 case wsRRMouseButton: | 429 case wsRRMouseButton: |
431 mplHideMenu( RX,RY ); | 430 mplHideMenu( RX,RY,0 ); |
432 break; | 431 break; |
433 | 432 |
434 case wsPLMouseButton: | 433 case wsPLMouseButton: |
435 sx=X; sy=Y; boxMoved=1; itemtype=itPLMButton; // if move the main window | 434 sx=X; sy=Y; boxMoved=1; itemtype=itPLMButton; // if move the main window |
436 SelectedItem=currentselected; | 435 SelectedItem=currentselected; |