mirror of
https://github.com/softdorothy/GliderPRO.git
synced 2024-06-01 04:41:44 +00:00
1 line
38 KiB
C
1 line
38 KiB
C
|
//============================================================================
//----------------------------------------------------------------------------
// ObjectDraw2.c
//----------------------------------------------------------------------------
//============================================================================
#include <Resources.h>
#include <TextUtils.h>
#include "Externs.h"
#include "Environ.h"
#include "Objects.h"
#include "RectUtils.h"
#include "Room.h"
#include "Utilities.h"
#define k8WhiteColor 0
#define kIntenseYellowColor 5
#define kPaleVioletColor 42
#define kDarkFleshColor 58
#define k8TanColor 94
#define k8PissYellowColor 95
#define k8BrownColor 137
#define k8SkyColor 150
#define k8EarthBlueColor 170
#define k8DkRed2Color 223
#define kIntenseGreenColor 225
#define kIntenseBlueColor 235
#define k8LtstGrayColor 245
#define k8LtstGray4Color 247
#define k8LtstGray5Color 248
#define k8LtGrayColor 249
#define k8Gray2Color 251
#define k8DkGrayColor 252
#define k8DkGray2Color 253
#define kBBQMaskID 3900
#define kUpStairsMaskID 3901
#define kTrunkMaskID 3902
#define kMailboxRightMaskID 3903
#define kMailboxLeftMaskID 3904
#define kDoorInLeftMaskID 3905
#define kDoorInRightMaskID 3906
#define kWindowInLeftMaskID 3907
#define kWindowInRightMaskID 3908
#define kHipLampMaskID 3909
#define kDecoLampMaskID 3910
#define kGuitarMaskID 3911
#define kTVMaskID 3912
#define kVCRMaskID 3913
#define kStereoMaskID 3914
#define kMicrowaveMaskID 3915
#define kFireplaceMaskID 3916
#define kBearMaskID 3917
#define kVase1MaskID 3918
#define kVase2MaskID 3919
#define kManholeMaskID 3920
#define kBooksMaskID 3922
#define kCloudMaskID 3921
#define kRugMaskID 3923
#define kChimesMaskID 3924
#define kCinderMaskID 3925
#define kFlowerBoxMaskID 3926
#define kCobwebMaskID 3927
#define kCobwebPictID 3958
#define kFlowerBoxPictID 3959
#define kCinderPictID 3960
#define kChimesPictID 3961
#define kRugPictID 3962
#define kBooksPictID 3964
#define kCloudPictID 3965
#define kBulletinPictID 3966
#define kManholePictID 3967
#define kVase2PictID 3968
#define kVase1PictID 3969
#define kCalendarPictID 3970
#define kMicrowavePictID 3971
#define kBearPictID 3972
#define kFireplacePictID 3973
#define kOzmaPictID 3975
#define kWindowExRightPictID 3977
#define kWindowExLeftPictID 3978
#define kWindowInRightPictID 3979
#define kWindowInLeftPictID 3980
#define kDoorExLeftPictID 3981
#define kDoorExRightPictID 3982
#define kDoorInRightPictID 3983
#define kDoorInLeftPictID 3984
#define kMailboxRightPictID 3985
#define kMailboxLeftPictID 3986
#define kTrunkPictID 3987
#define kBBQPictID 3988
#define kStereoPictID 3989
#define kVCRPictID 3990
#define kGuitarPictID 3991
#define kTVPictID 3992
#define kDecoLampPictID 3993
#define kHipLampPictID 3994
#define kFilingCabinetPictID 3995
#define kDownStairsPictID 3996
#define kUpStairsPictID 3997
#define kMailboxBase 296
#define kMonthStringID 1005
//============================================================== Functions
//-------------------------------------------------------------- DrawMailboxLeft
void DrawMailboxLeft (Rect *theRect, short down)
{
Rect bounds;
GWorldPtr tempMap;
GWorldPtr tempMask;
long darkGrayC, lightWoodC, darkWoodC;
CGrafPtr wasCPort;
GDHandle wasWorld;
OSErr theErr;
GetGWorld(&wasCPort, &wasWorld);
SetGWorld(backSrcMap, nil);
if (thisMac.isDepth == 4)
{
darkGrayC = 13;
lightWoodC = 9;
darkWoodC = 11;
}
else
{
darkGrayC = k8DkGray2Color;
lightWoodC = k8PissYellowColor;
darkWoodC = k8BrownColor;
}
if (theRect->bottom < down + kMailboxBase)
{
ColorLine(theRect->left + 49, theRect->bottom,
theRect->left + 49, down + kMailboxBase, darkGrayC);
ColorLine(theRect->left + 50, theRect->bottom,
theRect->left + 50, down + kMailboxBase + 1, lightWoodC);
ColorLine(theRect->left + 51, theRect->bottom,
theRect->left + 51, down + kMailboxBase + 2, lightWoodC);
ColorLin
|