Slider fix

Tom Hughes tom at compton.nu
Tue Apr 11 00:13:31 BST 2000


The attached patch reverses the order of the lower and upper bounds
in the Slider_{Get,Set}Bounds calls.

This is in response to a RISC OS Ltd TechNote reporting that the
toolbox documentation has these arguments the wrong way around. We
had in fact already managed to reverse the flags somehow but not
the actual registers.

Tom

-- 
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
...Nihilism doesn't exist.
-------------- next part --------------
Index: Slider
===================================================================
RCS file: /home/cvs/riscos/oslib/Source/Toolbox/Slider,v
retrieving revision 1.3
diff -c -r1.3 Slider
*** Slider	2000/03/04 22:41:25	1.3
--- Slider	2000/04/09 09:39:47
***************
*** 80,87 ****
           R1 = Toolbox_O: window,
           R2 # 578 "Sets the bounding values and step size of a slider",
           R3 = Toolbox_C: slider,
!          R4 = .Int: upper_bound,
!          R5 = .Int: lower_bound,
           R6 = .Int: step_size
     )  );
  
--- 80,87 ----
           R1 = Toolbox_O: window,
           R2 # 578 "Sets the bounding values and step size of a slider",
           R3 = Toolbox_C: slider,
!          R4 = .Int: lower_bound,
!          R5 = .Int: upper_bound,
           R6 = .Int: step_size
     )  );
  
***************
*** 95,102 ****
           R3 = Toolbox_C: slider
        ),
        EXIT
!       (  R0 = .Int: upper_bound,
!          R1 = .Int: lower_bound,
           R2 = .Int: step_size
     )  );
  
--- 95,102 ----
           R3 = Toolbox_C: slider
        ),
        EXIT
!       (  R0 = .Int: lower_bound,
!          R1 = .Int: upper_bound,
           R2 = .Int: step_size
     )  );
  


More information about the oslib-team mailing list