Index: Makefile.am =================================================================== RCS file: /sources/gnash/gnash/Makefile.am,v retrieving revision 1.21 diff -p -u -r1.21 Makefile.am --- Makefile.am 24 Apr 2006 23:05:55 -0000 1.21 +++ Makefile.am 10 May 2006 01:46:31 -0000 @@ -37,7 +37,7 @@ AUTOMAKE_OPTIONS = dejagnu ACLOCAL_AMFLAGS = -I macros -STD_DIRS = libbase libgeometry server backend utilities plugin # gui +STD_DIRS = libbase libgeometry server backend utilities gui plugin if DOCBOOK DOC_DIRS = doc endif Index: backend/Makefile.am =================================================================== RCS file: /sources/gnash/gnash/backend/Makefile.am,v retrieving revision 1.21 diff -p -u -r1.21 Makefile.am --- backend/Makefile.am 2 May 2006 20:51:59 -0000 1.21 +++ backend/Makefile.am 10 May 2006 01:46:32 -0000 @@ -70,7 +70,7 @@ INCLUDES = -I.. \ $(MP3_CFLAGS) \ $(OGG_CFLAGS) -bin_PROGRAMS = gnash +bin_PROGRAMS = # gnash #noinst_LTLIBRARIES = libgbackend.la lib_LTLIBRARIES = libgnashbackend.la Index: backend/render_handler_cairo.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/render_handler_cairo.cpp,v retrieving revision 1.2 diff -p -u -r1.2 render_handler_cairo.cpp --- backend/render_handler_cairo.cpp 8 May 2006 21:12:24 -0000 1.2 +++ backend/render_handler_cairo.cpp 10 May 2006 01:46:32 -0000 @@ -364,6 +364,7 @@ struct render_handler_cairo : public gna { // GNASH_REPORT_FUNCTION; // Setup output window +#if 0 if (!g_cr_win) { Display* xdisp = XOpenDisplay(0); @@ -381,7 +382,7 @@ struct render_handler_cairo : public gna xdisp, xwin, visual, m_view_width, m_view_height); g_cr_win = cairo_create(surface); } - +#endif // Blit offscreen image onto output window cairo_surface_t* offscreen = cairo_get_target(m_cr_offscreen); cairo_set_source_surface(g_cr_win, offscreen, 0, 0); @@ -716,11 +717,12 @@ bitmap_info_cairo::bitmap_info_cairo(ima m_pattern = cairo_pattern_create_for_surface(m_image); } -gnash::render_handler* gnash::create_render_handler_cairo() +gnash::render_handler* gnash::create_render_handler_cairo(void* cairohandle) // Factory. { // GNASH_REPORT_FUNCTION; - return new render_handler_cairo; + g_cr_win = (cairo_t*) cairohandle; + return new render_handler_cairo(); } Index: backend/render_handler_ogl.cpp =================================================================== RCS file: /sources/gnash/gnash/backend/render_handler_ogl.cpp,v retrieving revision 1.12 diff -p -u -r1.12 render_handler_ogl.cpp --- backend/render_handler_ogl.cpp 8 May 2006 21:12:24 -0000 1.12 +++ backend/render_handler_ogl.cpp 10 May 2006 01:46:33 -0000 @@ -1168,6 +1168,47 @@ gnash::render_handler* gnash::create_ren // Factory. { // GNASH_REPORT_FUNCTION; + + // Do some initialisation. +#define OVERSIZE 1.0f + // Turn on alpha blending. + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + + // Turn on line smoothing. Antialiased lines can be used to + // smooth the outsides of shapes. + glEnable(GL_LINE_SMOOTH); + glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); // GL_NICEST, GL_FASTEST, GL_DONT_CARE + + glMatrixMode(GL_PROJECTION); + glOrtho(-OVERSIZE, OVERSIZE, OVERSIZE, -OVERSIZE, -1, 1); + glMatrixMode(GL_MODELVIEW); + glLoadIdentity(); + + // We don't need lighting effects + glDisable(GL_LIGHTING); + // glColorPointer(4, GL_UNSIGNED_BYTE, 0, *); + // glInterleavedArrays(GL_T2F_N3F_V3F, 0, *) + glPushAttrib (GL_ALL_ATTRIB_BITS); + + +#ifdef FIX_I810_LOD_BIAS + + + // If 2D textures weren't previously enabled, enable + // them now and force the driver to notice the update, + // then disable them again. + if (!glIsEnabled(GL_TEXTURE_2D)) { + // Clearing a mask of zero *should* have no + // side effects, but coupled with enbling + // GL_TEXTURE_2D it works around a segmentation + // fault in the driver for the Intel 810 chip. + glEnable(GL_TEXTURE_2D); + glClear(0); + glDisable(GL_TEXTURE_2D); + } +#endif + return new render_handler_ogl; } Index: libbase/tu_opengl_includes.h =================================================================== RCS file: /sources/gnash/gnash/libbase/tu_opengl_includes.h,v retrieving revision 1.1 diff -p -u -r1.1 tu_opengl_includes.h --- libbase/tu_opengl_includes.h 20 Dec 2005 20:57:00 -0000 1.1 +++ libbase/tu_opengl_includes.h 10 May 2006 01:46:34 -0000 @@ -54,6 +54,7 @@ #if !defined(WIN32) && !defined(__MACH__) # include # include +# include #ifndef APIENTRY # define APIENTRY #endif Index: server/gnash.h =================================================================== RCS file: /sources/gnash/gnash/server/gnash.h,v retrieving revision 1.22 diff -p -u -r1.22 gnash.h --- server/gnash.h 9 May 2006 15:34:16 -0000 1.22 +++ server/gnash.h 10 May 2006 01:46:35 -0000 @@ -164,7 +164,8 @@ float get_curve_max_pixel_error(); // version of the library, depending on platform etc. render_handler* create_render_handler_xbox(); render_handler* create_render_handler_ogl(); -render_handler* create_render_handler_cairo(); +render_handler* create_render_handler_cairo(void* cairohandle); + sound_handler* create_sound_handler_sdl();