Changeset 71eff34 in mainline
- Timestamp:
- 2020-04-07T18:24:05Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef30659
- Parents:
- 1b443cc0
- Location:
- uspace/srv/hid/display
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/types/display/window.h
r1b443cc0 r71eff34 70 70 /** Display position */ 71 71 gfx_coord2_t dpos; 72 /** Preview position */72 /** Preview position (when moving) */ 73 73 gfx_coord2_t preview_pos; 74 /** Preview rectangle (when resizing) */ 75 gfx_rect_t preview_rect; 74 76 /** Minimum size */ 75 77 gfx_coord2_t min_size; -
uspace/srv/hid/display/window.c
r1b443cc0 r71eff34 525 525 wnd->state = dsw_resizing; 526 526 wnd->rsztype = rsztype; 527 wnd->preview_rect = wnd->rect; 527 528 } 528 529 … … 574 575 return; 575 576 576 gfx_rect_translate(&wnd->dpos, &wnd->rect, &drect); 577 578 gc = ds_display_get_gc(wnd->display); // XXX 579 if (gc != NULL) { 580 gfx_set_color(gc, wnd->display->bg_color); 581 gfx_fill_rect(gc, &drect); 582 } 577 gfx_rect_translate(&wnd->dpos, &wnd->preview_rect, &drect); 578 (void) ds_display_paint(wnd->display, &drect); 583 579 584 580 gfx_coord2_subtract(pos, &wnd->orig_pos, &dresize); … … 586 582 ds_window_calc_resize(wnd, &dresize, &nrect); 587 583 gfx_rect_translate(&wnd->dpos, &nrect, &drect); 584 wnd->preview_rect = nrect; 588 585 589 586 rc = gfx_color_new_rgb_i16(0xffff, 0xffff, 0xffff, &color);
Note:
See TracChangeset
for help on using the changeset viewer.