Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 375637

Summary: [GC] Simplify protocol for fillArc
Product: [RT] RAP Reporter: Moritz Post <mpost>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: 1.4   
Target Milestone: 1.5 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Moritz Post CLA 2012-03-29 10:40:41 EDT
Currently the protocol uses the following operations to draw an arc which looks like pacman:

[beginPath]
[moveTo, 275, 208]
[ellipse, 275, 208, 110, 83, 0, 0.6981, 5.585, false]
[fill]

These message assume, that the ellipse call creates a line from the arcs center to the arc circle. On some client implementations this implicit line is not created. Therefore a more explicit approach would be:

[beginPath]
[ellipse, 275, 208, 110, 83, 0, 0.6981, 5.585, false]
[lineTo, 275, 208]
[fill]
Comment 1 Tim Buschtoens CLA 2012-04-02 06:33:22 EDT
Fixed in CVS HEAD.