- Cleaned out some of the compiler warnings in the scenario editor (removing unused variables mostly).

- Finally removed the grow box in the corner of the scenario editor window.
- Changed #include <iostream> in several headers to #include <iosfwd>, since they were only present for the use of
  the ostream and istream classes, and cout/cin were unneeded.
- Changed bool to Boolean in the old structs, since that's what it was originally.
- Small changes to graphtool, including an overload of get_custom_rect.
- Added gcd function to mathutil; was needed for something in the new dialog engine


git-svn-id: http://openexile.googlecode.com/svn/trunk@71 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-05-25 03:41:29 +00:00
parent b203c94ab7
commit 92bda1c100
28 changed files with 151 additions and 339 deletions

View File

@@ -284,11 +284,11 @@ void rect_draw_some_item (GWorldPtr src_gworld,Rect src_rect,GWorldPtr targ_gwor
SetPort(cur_port);
}
void char_win_draw_string(WindowPtr dest_window,Rect dest_rect,char *str,short mode,short line_height,bool main_win){
void char_win_draw_string(WindowPtr dest_window,Rect dest_rect,const char *str,short mode,short line_height,bool main_win){
char_port_draw_string(GetWindowPort(dest_window),dest_rect,str,mode,line_height, main_win);
}
void char_port_draw_string(GrafPtr dest_window,Rect dest_rect,char *str,short mode,short line_height,bool main_win){
void char_port_draw_string(GrafPtr dest_window,Rect dest_rect,const char *str,short mode,short line_height,bool main_win){
Str255 store_s;
strcpy((char*) store_s,str);
@@ -723,6 +723,15 @@ Rect get_custom_rect (short which_rect){
return store_rect;
}
short get_custom_rect (short which_rect, Rect& store_rect){ // returns the number of the sheet to use
short sheet = which_rect / 100;
which_rect %= 100;
SetRect(&store_rect,0,0,28,36);
OffsetRect(&store_rect,28 * (which_rect % 10),36 * (which_rect / 10));
return sheet;
}
void get_str(Str255 str,short i, short j){
GetIndString(str, i, j);
p2cstr(str);