diff --git a/src/gdi/handles/hpalette.rs b/src/gdi/handles/hpalette.rs index ccf5acc276..bb47088b0f 100644 --- a/src/gdi/handles/hpalette.rs +++ b/src/gdi/handles/hpalette.rs @@ -6,11 +6,6 @@ use crate::guard::*; use crate::kernel::privs::*; use crate::prelude::*; -impl_handle! { HPALETTE; - /// Handle to a - /// [palette](https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hpalette). -} - impl gdi_Hpalette for HPALETTE {} /// This trait is enabled with the `gdi` feature, and provides methods for diff --git a/src/gdi/handles/mod.rs b/src/gdi/handles/mod.rs index 0550b0f639..e7bd29d5bc 100644 --- a/src/gdi/handles/mod.rs +++ b/src/gdi/handles/mod.rs @@ -10,7 +10,6 @@ mod hrgn; pub mod decl { pub use super::hfont::HFONT; - pub use super::hpalette::HPALETTE; pub use super::hpen::HPEN; } diff --git a/src/user/handles/mod.rs b/src/user/handles/mod.rs index c36fc4833a..11a4935503 100644 --- a/src/user/handles/mod.rs +++ b/src/user/handles/mod.rs @@ -33,6 +33,11 @@ pub mod decl { /// [brush](https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hbrush). } + impl_handle! { HPALETTE; + /// Handle to a + /// [palette](https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hpalette). + } + impl_handle! { HRGN; /// Handle to a /// [region](https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#hrgn)