@@ -247,6 +247,8 @@ pub struct VBEField {
247247
248248bitflags ! {
249249 /// The Capabilities field indicates the support of specific features in the graphics environment.
250+ #[ derive( Clone , Copy , Debug , Default , PartialEq , Eq , PartialOrd , Ord ) ]
251+ #[ repr( transparent) ]
250252 pub struct VBECapabilities : u32 {
251253 /// Can the DAC be switched between 6 and 8 bit modes.
252254 const SWITCHABLE_DAC = 0x1 ;
@@ -263,6 +265,8 @@ bitflags! {
263265
264266bitflags ! {
265267 /// A Mode attributes bitfield.
268+ #[ derive( Clone , Copy , Debug , Default , PartialEq , Eq , PartialOrd , Ord ) ]
269+ #[ repr( transparent) ]
266270 pub struct VBEModeAttributes : u16 {
267271 /// Mode supported by hardware configuration.
268272 const SUPPORTED = 0x1 ;
@@ -294,6 +298,8 @@ bitflags! {
294298bitflags ! {
295299 /// The WindowAttributes describe the characteristics of the CPU windowing
296300 /// scheme such as whether the windows exist and are read/writeable, as follows:
301+ #[ derive( Clone , Copy , Debug , Default , PartialEq , Eq , PartialOrd , Ord ) ]
302+ #[ repr( transparent) ]
297303 pub struct VBEWindowAttributes : u8 {
298304 /// Relocatable window(s) supported?
299305 const RELOCATABLE = 0x1 ;
@@ -317,6 +323,8 @@ bitflags! {
317323 /// (it is assumed all color ramp data is 8 bits per primary).
318324 /// Bit D1 specifies whether the bits in the Rsvd field of the direct color
319325 /// pixel can be used by the application or are reserved, and thus unusable.
326+ #[ derive( Clone , Copy , Debug , Default , PartialEq , Eq , PartialOrd , Ord ) ]
327+ #[ repr( transparent) ]
320328 pub struct VBEDirectColorAttributes : u8 {
321329 /// Color ramp is fixed when cleared and programmable when set.
322330 const PROGRAMMABLE = 0x1 ;
0 commit comments