This commit is contained in:
Michael.Kedl%Nexwarecorp.com 1999-07-20 19:36:57 +00:00
Родитель 5bd55345fb
Коммит 6a747a1b32
2 изменённых файлов: 14 добавлений и 4 удалений

Просмотреть файл

@ -38,8 +38,6 @@ CXXFLAGS += $(TK_CFLAGS)
INCLUDES += $(TK_CFLAGS) -I$(srcdir)/..
CPPSRCS = \
clip.cpp \
ostream_hack.cpp \
nsDeviceContextPh.cpp \
nsDeviceContextSpecFactoryP.cpp \
nsDeviceContextSpecPh.cpp \
@ -49,6 +47,8 @@ CPPSRCS = \
nsImagePh.cpp \
nsRegionPh.cpp \
nsRenderingContextPh.cpp \
clip.cpp \
ostream_hack.cpp \
$(NULL)
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -999,7 +999,8 @@ NS_IMETHODIMP nsRenderingContextPh :: FillRect(nscoord aX, nscoord aY, nscoord a
NS_IMETHODIMP
nsRenderingContextPh :: InvertRect(const nsRect& aRect)
{
NS_NOTYETIMPLEMENTED("nsRenderingContextPh::InvertRect");
// NS_NOTYETIMPLEMENTED("nsRenderingContextPh::InvertRect");
InvertRect( aRect.x, aRect.y, aRect.width, aRect.height );
return NS_OK;
}
@ -1007,7 +1008,16 @@ nsRenderingContextPh :: InvertRect(const nsRect& aRect)
NS_IMETHODIMP
nsRenderingContextPh :: InvertRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)
{
NS_NOTYETIMPLEMENTED("nsRenderingContextPh::InvertRect");
int oldcolor;
// NS_NOTYETIMPLEMENTED("nsRenderingContextPh::InvertRect");
printf ("invert rect: %d %d %d %d\n",aX,aY,aWidth,aHeight);
oldcolor=PgSetFillColor(Pg_INVERT_COLOR);
PgSetDrawMode(Pg_DRAWMODE_XOR);
FillRect( aX, aY, aWidth, aHeight );
PgSetDrawMode(Pg_DRAWMODE_OPAQUE);
PgSetFillColor(oldcolor);
return NS_OK;
}