Skip to content

Commit

Permalink
fix(renderer): Fix projection matrix on sway-git
Browse files Browse the repository at this point in the history
Fixes #80.

Co-authored-by: Danilo Spinella <[email protected]>
Co-authored-by: Ivan Zatevaxin <[email protected]>
  • Loading branch information
danyspin97 and zatevakhin committed Jul 4, 2024
1 parent 0066424 commit b535e16
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions daemon/src/render/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,6 @@ fn create_program(gl: &gl::Gl, transition: Transition) -> Result<gl::types::GLui

#[rustfmt::skip]
fn projection_matrix(transform: Transform) -> [f32; 4] {
println!("HERE");
match transform {
Transform::Normal => {
[
Expand All @@ -508,8 +507,8 @@ fn projection_matrix(transform: Transform) -> [f32; 4] {
}
Transform::_90 => {
[
0.0, 1.0,
-1.0, 0.0,
0.0, -1.0,
1.0, 0.0,
]
}
Transform::_180 => {
Expand All @@ -520,8 +519,8 @@ fn projection_matrix(transform: Transform) -> [f32; 4] {
}
Transform::_270 => {
[
0.0, -1.0,
1.0, 0.0,
0.0, 1.0,
-1.0, 0.0,
]
}
Transform::Flipped => {
Expand Down

0 comments on commit b535e16

Please sign in to comment.