mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miracle-srcctl: fix some warming
This commit is contained in:
parent
853152cb9c
commit
1919de3158
4 changed files with 13 additions and 23 deletions
|
@ -191,7 +191,7 @@ int vfd_get_vesa_resolution(uint32_t mask, int *hres, int *vres)
|
|||
if (!mask)
|
||||
return -EINVAL;
|
||||
|
||||
for (N_ELEMENTS(resolutions_vesa) - 1; i >= 0; --i) {
|
||||
for (i = N_ELEMENTS(resolutions_vesa) - 1; i >= 0; --i) {
|
||||
if ((1 << resolutions_vesa[i].index) & mask) {
|
||||
*vres = resolutions_vesa[i].vres;
|
||||
*hres = resolutions_vesa[i].hres;
|
||||
|
@ -208,7 +208,7 @@ int vfd_get_hh_resolution(uint32_t mask, int *hres, int *vres)
|
|||
if (!mask)
|
||||
return -EINVAL;
|
||||
|
||||
for (N_ELEMENTS(resolutions_hh); i >= 0; --i) {
|
||||
for (i = N_ELEMENTS(resolutions_hh); i >= 0; --i) {
|
||||
if ((1 << resolutions_hh[i].index) & mask) {
|
||||
*vres = resolutions_hh[i].vres;
|
||||
*hres = resolutions_hh[i].hres;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue