Opened 11 years ago

Closed 8 years ago

Last modified 8 years ago

#2903 closed bug (fixed)

BScreen GetBitmap Returns a black bitmap

Reported by: lawsonwa Owned by: leavengood
Priority: normal Milestone: R1
Component: User Interface Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

BScreen->GetBitmap() returns a black bitmap rather than a current screen shot.

I call BScreen->GetBitmap() in the StartSaver function of a screen saver. All of the bitmap data has a value of 0xFF000000. The return value of GetBitmap() is B_OK.

In R5 GetBitmap() returns a valid screen shot.

Change History (7)

comment:1 Changed 11 years ago by axeld

Component: - GeneralUser Interface
Owner: changed from axeld to stippi

That should actually be a problem of the screen blanker; if Magnify returns a black screen, then you are in trouble :-)

When your saver runs, the top view of the window it's part of is black. I guess the only way around that would be to make it transparent instead.

comment:2 Changed 11 years ago by leavengood

Owner: changed from stippi to leavengood

The screen saver runner does not work like the R5 one in several ways. I am working on it now so will take over this issue too.

comment:3 Changed 8 years ago by phoudoin

Should be fixed in hrev39789.

comment:4 Changed 8 years ago by phoudoin

Resolution: fixed
Status: newclosed

comment:5 Changed 8 years ago by leavengood

When I get a chance I'll try to test this with some of the screen savers which use that feature.

comment:6 Changed 8 years ago by leavengood

OK I tested with the screensaver Distort both before and after this change and this definitely fixed it. Thanks a lot!

comment:7 Changed 8 years ago by phoudoin

Thanks for feedback.

Considering that it took us 2 years to do what was suggested by Axel since day one, we have nothing to brag about. Oh well, at least, we have a proof that our collective coding skills have increased a bit in two years. :-)

Last edited 8 years ago by phoudoin (previous) (diff)
Note: See TracTickets for help on using tickets.