Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#826 closed defect (fixed)

When resized, UI Demo window turns black

Reported by: Jiri Svoboda Owned by: Jiri Svoboda
Priority: major Milestone: 0.11.1
Component: helenos/unspecified Version: mainline
Keywords: ui Cc:
Blocker for: Depends on:
See also:

Description

When I try to resize UI Demo window (the only rezizable window), it turns black and/or application becomes unstable.

Change History (4)

comment:1 by Jiri Svoboda, 4 years ago

Summary: When UI Demo window turns blackWhen resized, UI Demo window turns black

comment:2 by Jiri Svoboda, 4 years ago

This only happens if CONFIG_WIN_DOUBLE_BUF=n. In that case we allocate the window bitmap with flag bmpf_direct_output.

The problem is that we allocate the window bitmap before we resize the window. We cannot map the window with the new size before it has been resized, so the operation fails.

We need to allocate the bitmap after the window has been resized. Not sure if it is worth handling each case (direct map or not) separately, or just always allocate the bitmap after the fact.

comment:3 by Jiri Svoboda, 4 years ago

Resolution: fixed
Status: assignedclosed

comment:4 by Jakub Jermář, 4 years ago

Milestone: 0.9.20.11.1

Milestone renamed

Note: See TracTickets for help on using tickets.