/[james]/sargasso2/sargasso.c
ViewVC logotype

Diff of /sargasso2/sargasso.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 81 by james, Sun Nov 26 16:57:32 2006 UTC revision 83 by james, Mon Jul 6 01:59:16 2009 UTC
# Line 18  Line 18 
18  #include <oslib/wimpspriteop.h>  #include <oslib/wimpspriteop.h>
19  #include <rufl.h>  #include <rufl.h>
20  #include "feed.h"  #include "feed.h"
 #include "netsurf/utils/log.h"  
21    
22    
23  #define MAX_LINES 20  #define MAX_LINES 20
# Line 29  Line 28 
28  #define CHOICES_WRITE "<Choices$Write>.Sargasso.Choices"  #define CHOICES_WRITE "<Choices$Write>.Sargasso.Choices"
29  #define WRITE_DIR "<Choices$Write>.Sargasso"  #define WRITE_DIR "<Choices$Write>.Sargasso"
30    
31    #define LOG(x) (printf(__FILE__ " %s %i: ", __PRETTY_FUNCTION__, __LINE__), printf x, fputc('\n', stdout));
32    
33  typedef void (*click_callback)(unsigned int i);  typedef void (*click_callback)(unsigned int i);
34    
35  struct paragraph {  struct paragraph {
# Line 182  void gui_init(void) Line 183  void gui_init(void)
183                  { "!sargasso" } } };                  { "!sargasso" } } };
184          os_error *error;          os_error *error;
185    
         code = rufl_init();  
         if (code != rufl_OK) {  
                 LOG(("rufl_init: %i", code));  
                 die("Failed to initialise Unicode font library");  
         }  
   
186          error = xwimp_initialise(wimp_VERSION_RO3, "Sargasso",          error = xwimp_initialise(wimp_VERSION_RO3, "Sargasso",
187                          (const wimp_message_list *) &messages, 0, &task);                          (const wimp_message_list *) &messages, 0, &task);
188          if (error) {          if (error) {
# Line 196  void gui_init(void) Line 191  void gui_init(void)
191                  die(error->errmess);                  die(error->errmess);
192          }          }
193    
194            code = rufl_init();
195            if (code != rufl_OK) {
196                    LOG(("rufl_init: %i", code));
197                    die("Failed to initialise Unicode font library");
198            }
199    
200          error = xosfile_read_stamped_no_path("<Sargasso$Dir>.Sprites",          error = xosfile_read_stamped_no_path("<Sargasso$Dir>.Sprites",
201                          &obj_type, 0, 0, &size, 0, 0);                          &obj_type, 0, 0, &size, 0, 0);
202          if (error) {          if (error) {

Legend:
Removed from v.81  
changed lines
  Added in v.83

  ViewVC Help
Powered by ViewVC 1.1.26