Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device screen UI #46

Merged
merged 16 commits into from
Jun 18, 2024
Merged

Device screen UI #46

merged 16 commits into from
Jun 18, 2024

Conversation

cooperq
Copy link
Collaborator

@cooperq cooperq commented Jun 10, 2024

No description provided.

@cooperq cooperq marked this pull request as ready for review June 11, 2024 23:47
@cooperq cooperq requested a review from wgreenberg June 11, 2024 23:47
Copy link
Collaborator

@wgreenberg wgreenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple style/performance comments

bin/src/config.rs Show resolved Hide resolved
bin/src/daemon.rs Outdated Show resolved Hide resolved
bin/src/framebuffer.rs Outdated Show resolved Hide resolved
bin/src/framebuffer.rs Outdated Show resolved Hide resolved
bin/static/images/orca.gif Outdated Show resolved Hide resolved
bin/static/images/subtle.png Outdated Show resolved Hide resolved
bin/src/framebuffer.rs Outdated Show resolved Hide resolved
bin/src/framebuffer.rs Outdated Show resolved Hide resolved
bin/src/framebuffer.rs Outdated Show resolved Hide resolved
bin/src/daemon.rs Outdated Show resolved Hide resolved
Comment on lines 158 to 163
2 => {
fb.draw_gif(img);
},
3 => {
fb.draw_img(img)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2 => {
fb.draw_gif(img);
},
3 => {
fb.draw_img(img)
}
2 | 3 => {
fb.draw_gif(img.unwrap());
},

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope these are separate functions, I have split out draw gif and draw image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also we arleady unwrap and return a result in 138/140 no?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OH duh. and img is an Option, so we need to unwrap it again here

bin/src/daemon.rs Outdated Show resolved Hide resolved
bin/src/daemon.rs Outdated Show resolved Hide resolved
bin/src/daemon.rs Outdated Show resolved Hide resolved
cooperq and others added 2 commits June 17, 2024 15:32
@wgreenberg wgreenberg merged commit dd48d89 into main Jun 18, 2024
1 check passed
@wgreenberg wgreenberg deleted the framebuffer branch June 18, 2024 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants