[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ming_ut...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ming_ut... |
Date: |
Mon, 16 Oct 2006 11:57:41 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/10/16 11:57:41
Modified files:
. : ChangeLog
testsuite/misc-ming.all: ming_utils.c ming_utils.h
Log message:
* testsuite/misc-ming.all/ming_utils.{c,h}: added make_fill_square()
function.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1230&r2=1.1231
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/ming_utils.c?cvsroot=gnash&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/ming_utils.h?cvsroot=gnash&r1=1.2&r2=1.3
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1230
retrieving revision 1.1231
diff -u -b -r1.1230 -r1.1231
--- ChangeLog 16 Oct 2006 11:54:49 -0000 1.1230
+++ ChangeLog 16 Oct 2006 11:57:41 -0000 1.1231
@@ -1,5 +1,7 @@
2006-10-16 Sandro Santilli <address@hidden>
+ * testsuite/misc-ming.all/ming_utils.{c,h}: added make_fill_square()
+ function.
* testsuite/MovieTester.{cpp,h}: added movePointerTo() method
to generate mouse events.
* server/types.cpp, server/matrix.cpp: don't check IF_VERBOSE_PARSE
Index: testsuite/misc-ming.all/ming_utils.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/ming_utils.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/misc-ming.all/ming_utils.c 12 Oct 2006 11:03:22 -0000
1.2
+++ testsuite/misc-ming.all/ming_utils.c 16 Oct 2006 11:57:41 -0000
1.3
@@ -70,3 +70,19 @@
return sh;
}
+SWFShape
+make_fill_square(int x, int y, int width, int height, byte or, byte og, byte
ob, byte fr, byte fg, byte fb)
+{
+ SWFShape sh = newSWFShape();
+ SWFFillStyle fs = SWFShape_addSolidFillStyle(sh, fr, fg, fb, 255);
+ SWFShape_setLineStyle(sh, 1, or, og, ob, 255);
+ SWFShape_setLeftFillStyle(sh, fs);
+ SWFShape_movePenTo(sh, x, y);
+ SWFShape_drawLineTo(sh, x, y+height);
+ SWFShape_drawLineTo(sh, x+width, y+height);
+ SWFShape_drawLineTo(sh, x+width, y);
+ SWFShape_drawLineTo(sh, x, y);
+
+ return sh;
+}
+
Index: testsuite/misc-ming.all/ming_utils.h
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/ming_utils.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/misc-ming.all/ming_utils.h 12 Oct 2006 11:03:22 -0000
1.2
+++ testsuite/misc-ming.all/ming_utils.h 16 Oct 2006 11:57:41 -0000
1.3
@@ -44,7 +44,10 @@
/// printing to a textfield created using the given depth, position and size
void add_xtrace_function(SWFMovie mo, int depth, int x, int y, int width, int
height);
-/// Create a square shape with given offset, size and colors
+/// Create an outline square shape with given offset, size and colors
SWFShape make_square(int x, int y, int width, int height, byte r, byte g, byte
b);
+/// Create a filled square shape with given offset, size and colors
+SWFShape make_fill_square(int x, int y, int width, int height, byte outline_r,
byte outline_g, byte outline_b, byte fill_r, byte fill_g, byte fill_b);
+
#endif // GNASH_MING_UTILS_H
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ming_ut...,
Sandro Santilli <=