render: effectively rename Display to Output, push remaining common code into Renderer task

This commit is contained in:
2024-11-29 18:13:22 +01:00
parent 5ca062adbd
commit bd2f2edebb
6 changed files with 131 additions and 129 deletions

View File

@@ -64,7 +64,7 @@ impl Shader for GayBarberShader {
}
impl<T: Surface> IdleTask<T> {
pub fn new<S: Surfaces<T>>(surfaces: &mut S) -> Self {
pub fn new<S: Surfaces<Surface = T>>(surfaces: &mut S) -> Self {
IdleTask {
solid: surfaces.new_surface(&Rectangle::everything()).unwrap(),
surface: surfaces.new_surface(&Rectangle::everything()).unwrap(),