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

I see no reason why the rotation variable is an unsigned instead of a… #3944

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/src/screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct sc_screen {
struct sc_size windowed_content_size;

// client rotation: 0, 1, 2 or 3 (x90 degrees counterclockwise)
unsigned rotation;
uint8_t rotation;
// rectangle of the content (excluding black borders)
struct SDL_Rect rect;
bool has_frame;
Expand Down Expand Up @@ -132,7 +132,7 @@ sc_screen_resize_to_pixel_perfect(struct sc_screen *screen);

// set the display rotation (0, 1, 2 or 3, x90 degrees counterclockwise)
void
sc_screen_set_rotation(struct sc_screen *screen, unsigned rotation);
sc_screen_set_rotation(struct sc_screen *screen, uint8_t rotation);

// react to SDL events
// If this function returns false, scrcpy must exit with an error.
Expand Down