Changeset dc0f6e4c in mainline for uspace/lib/display/src/wndresize.c


Ignore:
Timestamp:
2023-10-24T16:50:46Z (13 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Parents:
29ed06d
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 20:38:41)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-24 16:50:46)
Message:

Deduplicate identical enums for window resizing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/src/wndresize.c

    r29ed06d rdc0f6e4c  
    7575bool display_wndrsz_valid(display_wnd_rsztype_t rsztype)
    7676{
    77         bool valid;
    78 
    79         valid = false;
    80 
    8177        switch (rsztype) {
    8278        case display_wr_top:
     
    8884        case display_wr_top_right:
    8985        case display_wr_bottom_left:
    90                 valid = true;
    91                 break;
     86                return true;
     87
     88        case display_wr_none:
     89                return false;
    9290        }
    9391
    94         return valid;
     92        return false;
    9593}
    9694
Note: See TracChangeset for help on using the changeset viewer.