Stop mix'n'match p96/gfx.lib drawing, remove ami_clg

svn path=/trunk/netsurf/; revision=11832
This commit is contained in:
Chris Young 2011-02-26 22:24:41 +00:00
parent f8d46be1af
commit 31bd1df6f9
3 changed files with 9 additions and 20 deletions

View File

@ -40,7 +40,7 @@
#include <intuition/icclass.h>
#include <proto/utility.h>
#include "utils/messages.h"
#include "amiga/plotters.h"
#include "graphics/rpattr.h"
#include <proto/window.h>
#include <proto/space.h>
@ -163,7 +163,9 @@ void ami_history_redraw(struct history_window *hw)
GetAttr(SCROLLER_Top,hw->objects[OID_VSCROLL],(ULONG *)&ys);
glob = &hw->gg;
ami_clg(0xffffff);
SetRPAttrs(&glob->rp, RPTAG_APenColor, 0xffffffff, TAG_DONE);
RectFill(&glob->rp, 0, 0, bbox->Width - 1, bbox->Height - 1);
history_redraw_rectangle(history_current, xs, ys,
bbox->Width + xs, bbox->Height + ys, 0, 0);

View File

@ -175,19 +175,6 @@ void ami_free_layers(struct gui_globals *gg)
FreeVec(gg->areabuf);
}
bool ami_clg(colour c)
{
p96RectFill(&glob->rp,0,0,scrn->Width-1,scrn->Width-1,
p96EncodeColor(RGBFB_A8B8G8R8,c));
/*
SetRPAttrs(&glob->rp,RPTAG_BPenColor,p96EncodeColor(RGBFB_A8B8G8R8,c),
TAG_DONE);
Move(&glob->rp,0,0);
ClearScreen(&glob->rp);
*/
return true;
}
void ami_clearclipreg(struct gui_globals *gg)
{
struct Region *reg = NULL;
@ -207,11 +194,13 @@ bool ami_rectangle(int x0, int y0, int x1, int y1, const plot_style_t *style)
LOG(("[ami_plotter] Entered ami_rectangle()"));
#endif
if (style->fill_type != PLOT_OP_TYPE_NONE) {
if (style->fill_type != PLOT_OP_TYPE_NONE) {
#ifndef NS_AMIGA_CAIRO_ALL
p96RectFill(&glob->rp,x0,y0,x1-1,y1-1,
p96EncodeColor(RGBFB_A8B8G8R8, style->fill_colour));
SetRPAttrs(&glob->rp, RPTAG_APenColor,
p96EncodeColor(RGBFB_A8B8G8R8, style->fill_colour),
TAG_DONE);
RectFill(&glob->rp, x0, y0, x1-1, y1-1);
#else
ami_cairo_set_colour(glob->cr, style->fill_colour);
ami_cairo_set_solid(glob->cr);

View File

@ -1249,8 +1249,6 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data)
if(x - pos_x + width > bbox->Width) width = bbox->Width - (x - pos_x);
if(y - pos_y + height > bbox->Height) height = bbox->Height - (y - pos_y);
ami_clg(0xffffffff);
tree_draw(twin->tree, -pos_x, -pos_y, x, y, width, height);
BltBitMapRastPort(twin->globals.bm, x - pos_x, y - pos_y, twin->win->RPort,