diff --git a/beos/beos_bitmap.cpp b/beos/beos_bitmap.cpp index 3ccf591e3..3c8f575b0 100644 --- a/beos/beos_bitmap.cpp +++ b/beos/beos_bitmap.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2004 James Bursa * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_bitmap.h b/beos/beos_bitmap.h index cecff4713..beecee2a0 100644 --- a/beos/beos_bitmap.h +++ b/beos/beos_bitmap.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Daniel Silverstone * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_fetch_rsrc.cpp b/beos/beos_fetch_rsrc.cpp index 579953e0d..000482055 100644 --- a/beos/beos_fetch_rsrc.cpp +++ b/beos/beos_fetch_rsrc.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2008 Rob Kendrick * * This file is part of NetSurf. @@ -17,7 +18,6 @@ */ /* rsrc: URL handling. */ -#warning XXX: WRITEME #define _GNU_SOURCE diff --git a/beos/beos_fetch_rsrc.h b/beos/beos_fetch_rsrc.h index 529a1efeb..cf275cd02 100644 --- a/beos/beos_fetch_rsrc.h +++ b/beos/beos_fetch_rsrc.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2008 Rob Kendrick * * This file is part of NetSurf. diff --git a/beos/beos_filetype.cpp b/beos/beos_filetype.cpp index a1211eab3..f06d63364 100644 --- a/beos/beos_filetype.cpp +++ b/beos/beos_filetype.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2007 Rob Kendrick * Copyright 2007 Vincent Sanders * diff --git a/beos/beos_filetype.h b/beos/beos_filetype.h index d07ed698a..b5ba0d813 100644 --- a/beos/beos_filetype.h +++ b/beos/beos_filetype.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2007 Rob Kendrick * Copyright 2007 Vincent Sanders * diff --git a/beos/beos_font.cpp b/beos/beos_font.cpp index 89c6736fb..7379f2e89 100644 --- a/beos/beos_font.cpp +++ b/beos/beos_font.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2005 James Bursa * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_font.h b/beos/beos_font.h index 06b8edaff..d61014900 100644 --- a/beos/beos_font.h +++ b/beos/beos_font.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2005 James Bursa * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_gui.cpp b/beos/beos_gui.cpp index 2ea0043d7..233a4337e 100644 --- a/beos/beos_gui.cpp +++ b/beos/beos_gui.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2005 James Bursa * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_gui.h b/beos/beos_gui.h index 0e9f1e266..c99f393e1 100644 --- a/beos/beos_gui.h +++ b/beos/beos_gui.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2005 James Bursa * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_history.cpp b/beos/beos_history.cpp index 07413f3c8..f63660356 100644 --- a/beos/beos_history.cpp +++ b/beos/beos_history.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_history.h b/beos/beos_history.h index c11a73873..71536f1ca 100644 --- a/beos/beos_history.h +++ b/beos/beos_history.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_login.cpp b/beos/beos_login.cpp index da1433b1c..0e5280d3b 100644 --- a/beos/beos_login.cpp +++ b/beos/beos_login.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_options.cpp b/beos/beos_options.cpp index c56c38a43..816aca3cb 100644 --- a/beos/beos_options.cpp +++ b/beos/beos_options.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_options.h b/beos/beos_options.h index e5605a922..38aaf866a 100644 --- a/beos/beos_options.h +++ b/beos/beos_options.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_plotters.cpp b/beos/beos_plotters.cpp index 89266d64c..d26eb3e9e 100644 --- a/beos/beos_plotters.cpp +++ b/beos/beos_plotters.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * Copyright 2005 James Bursa * @@ -27,6 +28,7 @@ #include #include #include +#include extern "C" { #include "desktop/plotters.h" #include "render/font.h" @@ -687,6 +689,52 @@ bool nsbeos_plot_bitmap_tile(int x, int y, int width, int height, bool nsbeos_plot_path(float *p, unsigned int n, colour fill, float width, colour c, float *transform) { + unsigned int i; + + if (n == 0) + return true; + + if (p[0] != PLOTTER_PATH_MOVE) { + LOG(("path doesn't start with a move")); + return false; + } + + BShape shape; + +#if 0 + for (i = 0; i < n; ) { + if (p[i] == PLOTTER_PATH_MOVE) { + path[i] = draw_MOVE_TO; + path[i + 1] = p[i + 1] * 2 * 256; + path[i + 2] = -p[i + 2] * 2 * 256; + i += 3; + } else if (p[i] == PLOTTER_PATH_CLOSE) { + path[i] = draw_CLOSE_LINE; + i++; + } else if (p[i] == PLOTTER_PATH_LINE) { + path[i] = draw_LINE_TO; + path[i + 1] = p[i + 1] * 2 * 256; + path[i + 2] = -p[i + 2] * 2 * 256; + i += 3; + } else if (p[i] == PLOTTER_PATH_BEZIER) { + path[i] = draw_BEZIER_TO; + path[i + 1] = p[i + 1] * 2 * 256; + path[i + 2] = -p[i + 2] * 2 * 256; + path[i + 3] = p[i + 3] * 2 * 256; + path[i + 4] = -p[i + 4] * 2 * 256; + path[i + 5] = p[i + 5] * 2 * 256; + path[i + 6] = -p[i + 6] * 2 * 256; + i += 7; + } else { + LOG(("bad path command %f", p[i])); + goto error; + } + } + path[i] = draw_END_PATH; + path[i + 1] = 0; +#endif + + //StrokeBezier #warning WRITEME #if 0 /* GTK */ /* Only the internal SVG renderer uses this plot call currently, diff --git a/beos/beos_plotters.h b/beos/beos_plotters.h index 9530c4b7e..bcf4f0fdb 100644 --- a/beos/beos_plotters.h +++ b/beos/beos_plotters.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2005 James Bursa * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_res.rdef b/beos/beos_res.rdef index 641098bb4..f93d56c84 100644 --- a/beos/beos_res.rdef +++ b/beos/beos_res.rdef @@ -1,10 +1,20 @@ /* -** /boot/home/beos_res.rdef -** -** Automatically generated by BResourceParser on -** Saturday, May 17, 2008 at 23:10:33. -** -*/ + * Copyright 2008 François Revol + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ enum { R_ResBackNavActive = 1042, diff --git a/beos/beos_scaffolding.cpp b/beos/beos_scaffolding.cpp index 79162ef71..17931a982 100644 --- a/beos/beos_scaffolding.cpp +++ b/beos/beos_scaffolding.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_scaffolding.h b/beos/beos_scaffolding.h index 2fcc7280e..76c355a54 100644 --- a/beos/beos_scaffolding.h +++ b/beos/beos_scaffolding.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2005 James Bursa * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_schedule.cpp b/beos/beos_schedule.cpp index b91c26b49..a8b1ca5d0 100644 --- a/beos/beos_schedule.cpp +++ b/beos/beos_schedule.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006-2007 Daniel Silverstone * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_schedule.h b/beos/beos_schedule.h index b7ffd074d..0b1b36b69 100644 --- a/beos/beos_schedule.h +++ b/beos/beos_schedule.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Daniel Silverstone * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_throbber.cpp b/beos/beos_throbber.cpp index 672ec7be3..b7ae0bf14 100644 --- a/beos/beos_throbber.cpp +++ b/beos/beos_throbber.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_throbber.h b/beos/beos_throbber.h index 5c890f9fe..325bb164c 100644 --- a/beos/beos_throbber.h +++ b/beos/beos_throbber.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_thumbnail.cpp b/beos/beos_thumbnail.cpp index 7860e386e..72ee5f3ce 100644 --- a/beos/beos_thumbnail.cpp +++ b/beos/beos_thumbnail.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_treeview.cpp b/beos/beos_treeview.cpp index 965501892..60fcaa40d 100644 --- a/beos/beos_treeview.cpp +++ b/beos/beos_treeview.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2004 Richard Wilson * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/beos_window.cpp b/beos/beos_window.cpp index 36b01acc5..796e4d6bd 100644 --- a/beos/beos_window.cpp +++ b/beos/beos_window.cpp @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Daniel Silverstone * Copyright 2006 Rob Kendrick * @@ -108,7 +109,7 @@ static GdkCursor *nsbeos_create_menu_cursor(void); NSBrowserFrameView::NSBrowserFrameView(BRect frame, struct gui_window *gui) : BView(frame, "NSBrowserFrameView", B_FOLLOW_ALL_SIDES, - B_WILL_DRAW | B_NAVIGABLE | B_FRAME_EVENTS), + B_WILL_DRAW | B_NAVIGABLE | B_FRAME_EVENTS /*| B_SUBPIXEL_PRECISE*/), fGuiWindow(gui) { } diff --git a/beos/beos_window.h b/beos/beos_window.h index 6dd3ecdd7..e5e43aaf8 100644 --- a/beos/beos_window.h +++ b/beos/beos_window.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Daniel Silverstone * * This file is part of NetSurf, http://www.netsurf-browser.org/ diff --git a/beos/options.h b/beos/options.h index f98d2a467..5c38ffb5f 100644 --- a/beos/options.h +++ b/beos/options.h @@ -1,4 +1,5 @@ /* + * Copyright 2008 François Revol * Copyright 2006 Rob Kendrick * * This file is part of NetSurf, http://www.netsurf-browser.org/