@@ -3921,6 +3921,14 @@ void MCPlayer::handle_shift_mdown(int p_which)
39213921 case kMCPlayerControllerPartThumb :
39223922 case kMCPlayerControllerPartWell :
39233923 {
3924+ // PM-2014-09-30: [[ Bug 13540 ]] shift+clicking on controller well/thumb/play button does something only if showSelection is true
3925+ if (!getflag (F_SHOW_SELECTION))
3926+ {
3927+ handle_mdown (p_which);
3928+ return ;
3929+ }
3930+
3931+
39243932 MCRectangle t_part_well_rect = getcontrollerpartrect (getcontrollerrect (), kMCPlayerControllerPartWell );
39253933 MCRectangle t_part_thumb_rect = getcontrollerpartrect (getcontrollerrect (), kMCPlayerControllerPartThumb );
39263934
@@ -3992,20 +4000,20 @@ void MCPlayer::handle_shift_mdown(int p_which)
39924000 }
39934001
39944002 if (hasfilename ())
3995- {
3996- bool t_show_selection;
3997- t_show_selection = true ;
3998- setflag (True, F_SHOW_SELECTION);
3999- MCPlatformSetPlayerProperty (m_platform_player, kMCPlatformPlayerPropertyShowSelection , kMCPlatformPropertyTypeBool , &t_show_selection);
4000-
40014003 setselection (true );
4002- }
4003-
4004+
40044005 layer_redrawrect (getcontrollerrect ());
40054006 }
40064007 break ;
40074008
40084009 case kMCPlayerControllerPartPlay :
4010+ // PM-2014-09-30: [[ Bug 13540 ]] shift+clicking on controller well/thumb/play button does something only if showSelection is true
4011+ if (!getflag (F_SHOW_SELECTION))
4012+ {
4013+ handle_mdown (p_which);
4014+ return ;
4015+ }
4016+
40094017 shift_play ();
40104018 break ;
40114019
@@ -4118,11 +4126,6 @@ void MCPlayer::shift_play()
41184126
41194127 if (hasfilename ())
41204128 {
4121- bool t_show_selection;
4122- t_show_selection = true ;
4123- setflag (True, F_SHOW_SELECTION);
4124- MCPlatformSetPlayerProperty (m_platform_player, kMCPlatformPlayerPropertyShowSelection , kMCPlatformPropertyTypeBool , &t_show_selection);
4125-
41264129 // MW-2014-07-18: [[ Bug 12825 ]] When play button clicked, previous behavior was to
41274130 // force rate to 1.0.
41284131 if (!getstate (CS_PREPARED) || ispaused ())
0 commit comments