% bug in color conversion
This commit is contained in:
parent
88d027950f
commit
da6903cf60
|
@ -16,7 +16,7 @@ package body Video.Colors is
|
|||
is (Color_Component (Value));
|
||||
|
||||
function To_1_Bit (Value : Color_Component) return Color_Component_1_Bit
|
||||
is (Color_Component_4_Bit (Value / 2**7));
|
||||
is (Color_Component_1_Bit (Value / 2**7));
|
||||
|
||||
function To_4_Bit (Value : Color_Component) return Color_Component_4_Bit
|
||||
is (Color_Component_4_Bit (Value / 2**4));
|
||||
|
@ -25,7 +25,7 @@ package body Video.Colors is
|
|||
is (Color_Component_5_Bit (Value / 2**3));
|
||||
|
||||
function To_6_Bit (Value : Color_Component) return Color_Component_6_Bit
|
||||
is (Color_Component_4_Bit (Value / 2**2));
|
||||
is (Color_Component_6_Bit (Value / 2**2));
|
||||
|
||||
function To_8_Bit (Value : Color_Component) return Color_Component_8_Bit
|
||||
is (Color_Component_8_Bit (Value));
|
||||
|
|
Loading…
Reference in New Issue