Changeset 8b22d44 in mainline for uspace/lib/ui/src/pbutton.c
- Timestamp:
- 2022-05-20T12:05:26Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0415776
- Parents:
- ea9024d7
- git-author:
- Jiri Svoboda <jiri@…> (2022-05-19 18:05:08)
- git-committer:
- Jiri Svoboda <jiri@…> (2022-05-20 12:05:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/pbutton.c
rea9024d7 r8b22d44 152 152 } 153 153 154 /** Set push button flag.s 155 * 156 * @param pbutton Push button 157 * @param flags Flags 158 */ 159 void ui_pbutton_set_flags(ui_pbutton_t *pbutton, ui_pbutton_flags_t flags) 160 { 161 pbutton->flags = flags; 162 } 163 154 164 /** Set button rectangle. 155 165 * … … 377 387 errno_t rc; 378 388 379 depressed = pbutton->held && pbutton->inside; 389 if ((pbutton->flags & ui_pbf_no_text_depress) == 0) 390 depressed = pbutton->held && pbutton->inside; 391 else 392 depressed = false; 380 393 381 394 rc = gfx_set_color(pbutton->res->gc, pbutton->res->wnd_face_color);
Note:
See TracChangeset
for help on using the changeset viewer.