Opened 8 years ago

Last modified 3 years ago

#9064 assigned bug

An invalidated BView does not draw to a BBitmap

Reported by: axeld Owned by: nobody
Priority: high Milestone: R1
Component: Servers/app_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


When you have the following construct, nothing will ever be drawn to the bitmap:

	BBitmap* bitmap = new BBitmap(frame, B_RGBA32, true);
	BView* view = new BView(bitmap->Bounds(), NULL, 0, B_WILL_DRAW);

	if (view->LockLooper()) {
		view->SetHighColor(225, 225, 225, 128);


If you remove the Invalidate(), the drawing operation is performed as expected. Needless to say, the code above worked fine under BeOS.

Change History (1)

comment:1 by axeld, 3 years ago

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.