pro polyfill2, x, y, dev=dev, color=color
;+
;NAME:
;	polyfill2
;PURPOSE:
;	Using the "TV2" suite of routines to handle switching
;	between device coordinates and postscript. POLYFILL
;	routine 
;SAMPLE CALLING SEQUENCE:
;	polyfill2, x, y
;HISTORY:
;	Written 16-Aug-97 by M.Morrison
;-
;
common tv2_blk, xsiz_pix, ysiz_pix, xsiz_inch, ysiz_inch, ppinch
;
if (n_elements(color) eq 0) then color = 255
;
if (!d.name ne 'PS') then begin
    polyfill, x, y, /dev, color=color
end else begin
    xx = x / float(xsiz_pix) * !d.x_size
    yy = y / float(ysiz_pix) * !d.y_size
    polyfill, xx, yy, /dev, color=color
end
;
end
