зеркало из https://github.com/mozilla/gecko-dev.git
added invert_rect handling
This commit is contained in:
Родитель
5bd55345fb
Коммит
6a747a1b32
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче