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

FB/sunxi: Don't nil w & h in the rotation hack #1725

Merged
merged 2 commits into from Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions ffi/framebuffer_sunxi.lua
Expand Up @@ -120,8 +120,8 @@ local function disp_update(fb, ioc_cmd, ioc_data, no_merge, is_flashing, wavefor
if fb._just_rotated then
x = 0
y = 0
w = nil
h = nil
w = fb:getWidth()
h = fb:getHeight()
fb._just_rotated = nil
no_merge = true
end
Expand Down
5 changes: 4 additions & 1 deletion input/input-kindle.h
Expand Up @@ -68,7 +68,7 @@ static void generateFakeEvent(int pipefd[2]) {
/* listen power slider events (listen for ever for multiple events) */
char *argv[] = {
"lipc-wait-event", "-m", "-s", "0", "com.lab126.powerd",
"goingToScreenSaver,outOfScreenSaver,charging,notCharging,wakeupFromSuspend,readyToSuspend", (char *)NULL
"goingToScreenSaver,outOfScreenSaver,exitingScreenSaver,charging,notCharging,wakeupFromSuspend,readyToSuspend", (char *)NULL
};
/* @TODO 07.06 2012 (houqp)
* plugin and out event can only be watched by:
Expand All @@ -95,6 +95,9 @@ static void generateFakeEvent(int pipefd[2]) {
ev.value = strtol_d(std_out + sizeof("outOfScreenSaver"));
sendEvent(pipefd[1], &ev);
ev.value = 1;
} else if(std_out[0] == 'e') {
ev.code = CODE_FAKE_EXIT_SAVER;
sendEvent(pipefd[1], &ev);
} else if((std_out[0] == 'u') && (std_out[7] == 'I')) {
ev.code = CODE_FAKE_USB_PLUGGED_IN_TO_HOST;
sendEvent(pipefd[1], &ev);
Expand Down
1 change: 1 addition & 0 deletions input/input.c
Expand Up @@ -37,6 +37,7 @@

#define CODE_FAKE_IN_SAVER 10000
#define CODE_FAKE_OUT_SAVER 10001
#define CODE_FAKE_EXIT_SAVER 10002 // For Kindle's exitingScreenSaver
// Device is plugged to USB host
#define CODE_FAKE_USB_PLUGGED_IN_TO_HOST 10010
#define CODE_FAKE_USB_PLUGGED_OUT_OF_HOST 10011
Expand Down