Opened 12 years ago

Closed 11 years ago

#1397 closed bug (fixed)

ClipToPicture and ClipToInversePicture not implemented

Reported by: jackburton Owned by: stippi
Priority: normal Milestone: R1
Component: Servers/app_server Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


ClipToPicture and ClipToInversePicture aren't implemented. BView sends already the necessary data to app_server, but app_server currently just ignores the commands.

Some documentation about ClipToPicture can be found here:

I also have some old proof-of-concept code laying around which implements ClipToPicture client side (attached).

Attachments (1)

View.cpp (2.2 KB) - added by jackburton 12 years ago.
ClipToPicture proof of concept

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by jackburton

Attachment: View.cpp added

ClipToPicture proof of concept

comment:1 Changed 11 years ago by jackburton

By the way: I tested this code (with BRegion::Include() instead of BRegion::_AddRect()) on haiku and it doesn't produce the correct result, while it works correctly on beos.

comment:2 Changed 11 years ago by jackburton

Found the problem: looks like drawing to a B_GRAY8 bitmap doesn't work. Using a B_RGBA32 bitmap works correctly.

comment:3 Changed 11 years ago by jackburton

I added the client side implementation in hrev27321. A slow implementation is better than nothing.

comment:4 Changed 11 years ago by jackburton

Resolution: fixed
Status: newclosed

Let's close this.

Note: See TracTickets for help on using tickets.