Commit 410aa0e
committed
Fix touch coordinate misalignment on RPi 7 inch screen
The video widget was using setFullScreen which maintained aspect ratio despite IgnoreAspectRatio being set. This caused the AA video window to only occupy 75% of the physical screen width while touch coordinates were scaled to the full screen dimensions.
Solution: Explicitly set video widget geometry to match the physical screen dimensions using QScreen geometry instead of relying on setFullScreen. This ensures the video output fills the entire screen and touch coordinates map correctly to the displayed content.
Impact: Touch input now correctly maps to displayed AA buttons and controls. Video fills entire 800x480 RPi 7 inch screen. Eliminates the 25% horizontal offset in touch coordinates.1 parent bf7f010 commit 410aa0e
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
106 | | - | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
108 | 124 | | |
109 | | - | |
110 | 125 | | |
| 126 | + | |
111 | 127 | | |
112 | 128 | | |
113 | 129 | | |
| |||
0 commit comments