diff options
author | François Revel <mmu_man@netsurf-browser.org> | 2008-06-04 01:53:20 +0000 |
---|---|---|
committer | François Revel <mmu_man@netsurf-browser.org> | 2008-06-04 01:53:20 +0000 |
commit | 524e29c4dfcbe713fc25075c9e1c566370062a55 (patch) | |
tree | 996eb330d23a3ff78598f259cd48b3cc6c174ee7 /beos/beos_gui.cpp | |
parent | 38be80a680ea5e7403dd39353902a7941e7b0147 (diff) | |
download | netsurf-524e29c4dfcbe713fc25075c9e1c566370062a55.tar.gz netsurf-524e29c4dfcbe713fc25075c9e1c566370062a55.tar.bz2 |
- fixed alpha bitmap drawing
- fixed polygon drawing
- newstyle throbber, loosely copied from the gtk one.
svn path=/trunk/netsurf/; revision=4259
Diffstat (limited to 'beos/beos_gui.cpp')
-rw-r--r-- | beos/beos_gui.cpp | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/beos/beos_gui.cpp b/beos/beos_gui.cpp index 601bdb5b6..2ea0043d7 100644 --- a/beos/beos_gui.cpp +++ b/beos/beos_gui.cpp @@ -334,8 +334,38 @@ void gui_init(int argc, char** argv) //nsbeos_completion_init(); + + /* This is an ugly hack to just get the new-style throbber going. + * It, along with the PNG throbber loader, need making more generic. + */ + { +#define STROF(n) #n +#define FIND_THROB(n) find_resource(filenames[(n)], \ + "throbber/throbber" STROF(n) ".png", \ + "./beos/res/throbber/throbber" STROF(n) ".png") + char filenames[9][PATH_MAX]; + FIND_THROB(0); + FIND_THROB(1); + FIND_THROB(2); + FIND_THROB(3); + FIND_THROB(4); + FIND_THROB(5); + FIND_THROB(6); + FIND_THROB(7); + FIND_THROB(8); + nsbeos_throbber_initialise_from_png(9, + filenames[0], filenames[1], filenames[2], filenames[3], + filenames[4], filenames[5], filenames[6], filenames[7], + filenames[8]); +#undef FIND_THROB +#undef STROF + } + +#if 0 find_resource(buf, "throbber.gif", "./beos/res/throbber.gif"); - nsbeos_throbber_initialise(buf); + nsbeos_throbber_initialise_from_gif(buf); +#endif + if (nsbeos_throbber == NULL) die("Unable to load throbber image.\n"); |