mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Complete anime diagonal gif support for GA402
This commit is contained in:
committed by
Luke D. Jones
parent
f3f6fadfe2
commit
a2c8a226a4
@@ -3,11 +3,7 @@ use std::path::Path;
|
||||
pub use glam::Vec2;
|
||||
use glam::{Mat3, Vec3};
|
||||
|
||||
use crate::{
|
||||
data::{AnimeDataBuffer, ANIME_GA401_DATA_LEN},
|
||||
error::AnimeError,
|
||||
AnimeType,
|
||||
};
|
||||
use crate::{data::AnimeDataBuffer, error::AnimeError, AnimeType};
|
||||
|
||||
/// A single greyscale + alpha pixel in the image
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
@@ -392,7 +388,7 @@ impl From<&AnimeImage> for AnimeDataBuffer {
|
||||
.iter()
|
||||
.map(|l| if let Some(l) = l { l.bright() } else { 0 })
|
||||
.collect();
|
||||
let mut v = Vec::with_capacity(ANIME_GA401_DATA_LEN);
|
||||
let mut v = Vec::with_capacity(leds.anime_type.data_length());
|
||||
v.push(0);
|
||||
v.append(&mut l);
|
||||
v.append(&mut vec![0u8; 9]);
|
||||
|
||||
Reference in New Issue
Block a user