mirror of
https://github.com/storytold/winit.git
synced 2026-11-30 10:17:38 +01:00
Correct privacy for Icon::to_cardinals (#510)
This commit is contained in:
1 parent
e48f1fc5f1
commit
741bcc4672
2 files changed
+3
-1
No files matched your search
@@ -17,7 +17,7 @@ impl Pixel {
|
||||
}
|
||||
|
||||
impl Icon {
|
||||
pub fn to_cardinals(&self) -> Vec<Cardinal> {
|
||||
pub(crate) fn to_cardinals(&self) -> Vec<Cardinal> {
|
||||
assert_eq!(self.rgba.len() % PIXEL_SIZE, 0);
|
||||
let pixel_count = self.rgba.len() / PIXEL_SIZE;
|
||||
assert_eq!(pixel_count, (self.width * self.height) as usize);
|
||||
|
||||
Reference in new issue
Block a user