- AssetViewPopup *popup = new AssetViewPopup(this, draw_mode, rx, ry, rw, rh);
- switch( draw_mode ) {
- case ASSET_VIEW_NONE:
- case ASSET_VIEW_ICON:
- case ASSET_VIEW_MEDIA_MAP:
- case ASSET_VIEW_FULL:
- vicon->stop_audio();
- vicon->playing_audio = -1;
- break;
- case ASSET_VIEW_MEDIA:
- switch( gui->vicon_drawing ) {
- case AVICON_FULL_PLAY:
- case AVICON_MOUSE_OVER:
- vicon->playing_audio = 1;
- vicon->start_audio();
+ AssetViewPopup *av_popup = (AssetViewPopup *)vpopup;
+ if( av_popup )
+ av_popup->reposition_window(rx, ry, rw, rh);
+ else
+ av_popup = new AssetViewPopup(this, draw_mode, rx, ry, rw, rh);
+ int playing_audio = gui->play_off ? -1 : 0;
+ if( !playing_audio ) {
+ switch( draw_mode ) {
+ case ASSET_VIEW_NONE:
+ case ASSET_VIEW_ICON:
+ case ASSET_VIEW_MEDIA_MAP:
+ case ASSET_VIEW_FULL:
+ playing_audio = -1;