- Got rid of the prefix header in favour of directly including it in every file that needs it (though some files still need the include yet apparently work fine; perhaps a clean build would catch that)
- Replaced all occurrences of FillCRect with the new tileImage, to get away from 'ppat' resources. - Fixed a minor error in the character editor where part of a text string was off the window. - With the prefix header gone, libticpp.dylib has been removed; TinyXML++ is now compiled right into the program. - The scenario editor splash screen is now loaded from a file. - The pc editor title has its transparency problem fixed. - Added an overload of tileImage that takes a RgnHandle instead of a Rect in order to replace the single occurrence of FillCRgn. - Removed an unused function in boe.graphics.cpp - Changed loading of patterns. Instead of loading each pattern individually from a resource, a single file containing all of them is loading. The arrays that formerly contained the actual patterns now contain the source rects of the patterns. - Fixed the cursor hotspots (the coordinates were reversed) - Removed the useless flip_pict that was written when I didn't know what I was doing. - Fixed error in tileImage in which vrep and hrep were switched. - Added code to tileImage to ensure that the pattern will line up with anything already onscreen, regardless of the rect to fill. - Two images were altered: pcedtitle.png to fix the transparenct problem, and pixpats.png to add one pattern that had been missed (and also rearrange the smaller patterns a little) git-svn-id: http://openexile.googlecode.com/svn/trunk@91 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#ifndef GRAPHTOOL_H
|
||||
#define GRAPHTOOL_H
|
||||
#include <Carbon/Carbon.h>
|
||||
#include <string>
|
||||
#define LINES_IN_TEXT_WIN 11
|
||||
|
||||
@@ -64,14 +65,16 @@ short get_custom_rect (short which_rect, Rect& store_rect);
|
||||
void get_str(Str255 str,short i, short j);
|
||||
GWorldPtr importPictureFileToGWorld(const FSSpec *fileSpec);
|
||||
void writeGWorldToPNGFile(GWorldPtr gw, const FSSpec *fileSpec);
|
||||
void tileImage(Rect area, GWorldPtr img, short mode=0);
|
||||
void tileImage(Rect area, GWorldPtr img, Rect srcRect, short mode=0);
|
||||
void tileImage(Rect area, GWorldPtr img, short mode = srcCopy);
|
||||
void tileImage(Rect area, GWorldPtr img, Rect srcRect, short mode = srcCopy);
|
||||
void tileImage(RgnHandle area, GWorldPtr img, short mode = srcCopy);
|
||||
void tileImage(RgnHandle area, GWorldPtr img, Rect srcRect, short mode = srcCopy);
|
||||
|
||||
#ifndef GRAPHTOOL_CPP
|
||||
extern cursor_type arrow_curs[3][3];
|
||||
extern cursor_type current_cursor;
|
||||
extern m_pic_index_t m_pic_index[200];
|
||||
extern PixPatHandle bg[14];
|
||||
extern Rect bg[];
|
||||
extern short geneva_font_num,dungeon_font_num;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user