home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / Graphics / Headers / PixPort.h
MacBinary  |  1999-08-07  |  8.4 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: PixPort.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sat Aug 7 20:44:08 1999, modified Sat Aug 7 20:44:08 1999, creator 'CWIE', type ASCII, 7935 bytes "PixPort.h" , at 0x1f7f 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 50 69 78 50 6f 72 | 74 2e 68 00 00 00 00 00 |..PixPor|t.h.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 1e ff 00 | 00 01 9a b3 d2 83 58 b3 |........|......X.|
|00000060| d2 83 58 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..X.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3d f0 00 00 |........|....=...|
|00000080| 23 70 72 61 67 6d 61 20 | 6f 6e 63 65 0d 0d 23 69 |#pragma |once..#i|
|00000090| 66 20 45 47 5f 57 49 4e | 0d 0d 2f 2f 20 23 23 23 |f EG_WIN|..// ###|
|000000a0| 20 69 6e 20 79 6f 75 72 | 20 67 6c 6f 62 61 6c 20 | in your| global |
|000000b0| 68 65 61 64 65 72 2c 20 | 64 65 66 69 6e 65 20 55 |header, |define U|
|000000c0| 53 45 5f 44 49 52 45 43 | 54 58 20 31 20 69 66 20 |SE_DIREC|TX 1 if |
|000000d0| 79 6f 75 20 77 61 6e 74 | 20 66 75 6c 6c 20 73 63 |you want| full sc|
|000000e0| 72 65 65 65 6e 20 61 62 | 69 6c 69 74 79 21 21 21 |reeen ab|ility!!!|
|000000f0| 0d 23 69 66 20 55 53 45 | 5f 44 49 52 45 43 54 58 |.#if USE|_DIRECTX|
|00000100| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 64 64 72 61 77 |.#includ|e <ddraw|
|00000110| 2e 68 3e 0d 23 65 6c 73 | 65 0d 74 79 70 65 64 65 |.h>.#els|e.typede|
|00000120| 66 20 6c 6f 6e 67 20 4c | 50 44 49 52 45 43 54 44 |f long L|PDIRECTD|
|00000130| 52 41 57 3b 0d 74 79 70 | 65 64 65 66 20 6c 6f 6e |RAW;.typ|edef lon|
|00000140| 67 20 4c 50 44 49 52 45 | 43 54 44 52 41 57 53 55 |g LPDIRE|CTDRAWSU|
|00000150| 52 46 41 43 45 3b 0d 23 | 65 6e 64 69 66 0d 0d 23 |RFACE;.#|endif..#|
|00000160| 65 6e 64 69 66 0d 0d 0d | 0d 23 69 66 20 45 47 5f |endif...|.#if EG_|
|00000170| 4d 41 43 0d 0d 2f 2f 20 | 23 23 23 20 69 6e 20 79 |MAC..// |### in y|
|00000180| 6f 75 72 20 67 6c 6f 62 | 61 6c 20 68 65 61 64 65 |our glob|al heade|
|00000190| 72 2c 20 64 65 66 69 6e | 65 20 55 53 45 5f 44 52 |r, defin|e USE_DR|
|000001a0| 41 57 5f 53 50 52 4f 43 | 4b 45 54 53 20 31 20 69 |AW_SPROC|KETS 1 i|
|000001b0| 66 20 79 6f 75 20 77 61 | 6e 74 20 66 75 6c 6c 20 |f you wa|nt full |
|000001c0| 73 63 72 65 65 65 6e 20 | 61 62 69 6c 69 74 79 21 |screeen |ability!|
|000001d0| 21 21 0d 23 69 6e 63 6c | 75 64 65 20 3c 51 75 69 |!!.#incl|ude <Qui|
|000001e0| 63 6b 44 72 61 77 2e 68 | 3e 0d 23 69 6e 63 6c 75 |ckDraw.h|>.#inclu|
|000001f0| 64 65 20 3c 51 44 4f 66 | 66 73 63 72 65 65 6e 2e |de <QDOf|fscreen.|
|00000200| 68 3e 0d 0d 23 69 66 20 | 55 53 45 5f 44 52 41 57 |h>..#if |USE_DRAW|
|00000210| 5f 53 50 52 4f 43 4b 45 | 54 53 0d 23 69 6e 63 6c |_SPROCKE|TS.#incl|
|00000220| 75 64 65 20 3c 44 72 61 | 77 53 70 72 6f 63 6b 65 |ude <Dra|wSprocke|
|00000230| 74 2e 68 3e 0d 23 65 6c | 73 65 0d 74 79 70 65 64 |t.h>.#el|se.typed|
|00000240| 65 66 20 6c 6f 6e 67 20 | 44 53 70 43 6f 6e 74 65 |ef long |DSpConte|
|00000250| 78 74 52 65 66 65 72 65 | 6e 63 65 3b 0d 73 74 72 |xtRefere|nce;.str|
|00000260| 75 63 74 20 44 53 70 43 | 6f 6e 74 65 78 74 41 74 |uct DSpC|ontextAt|
|00000270| 74 72 69 62 75 74 65 73 | 09 7b 20 7d 3b 0d 23 65 |tributes|.{ };.#e|
|00000280| 6e 64 69 66 0d 23 65 6c | 73 65 0d 23 65 6e 64 69 |ndif.#el|se.#endi|
|00000290| 66 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 55 74 69 |f..#incl|ude "Uti|
|000002a0| 6c 53 74 72 2e 68 22 0d | 0d 0d 0d 0d 23 64 65 66 |lStr.h".|....#def|
|000002b0| 69 6e 65 20 5f 5f 43 6c | 72 38 28 72 2c 67 2c 62 |ine __Cl|r8(r,g,b|
|000002c0| 29 09 30 0d 23 64 65 66 | 69 6e 65 20 5f 5f 43 6c |).0.#def|ine __Cl|
|000002d0| 72 31 36 28 72 2c 67 2c | 62 29 09 28 28 28 20 28 |r16(r,g,|b).((( (|
|000002e0| 28 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 29 20 |(unsigne|d long) |
|000002f0| 72 29 20 26 20 30 78 46 | 38 30 30 29 20 3e 3e 20 |r) & 0xF|800) >> |
|00000300| 31 29 20 7c 20 28 28 28 | 28 75 6e 73 69 67 6e 65 |1) | (((|(unsigne|
|00000310| 64 20 6c 6f 6e 67 29 20 | 67 29 20 26 20 30 78 46 |d long) |g) & 0xF|
|00000320| 38 30 30 29 20 3e 3e 20 | 36 29 20 7c 20 28 28 28 |800) >> |6) | (((|
|00000330| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 29 20 62 |unsigned| long) b|
|00000340| 29 20 3e 3e 20 31 31 29 | 29 0d 23 69 66 20 45 47 |) >> 11)|).#if EG|
|00000350| 5f 4d 41 43 20 0d 23 64 | 65 66 69 6e 65 09 5f 5f |_MAC .#d|efine.__|
|00000360| 43 6c 72 33 32 28 72 2c | 67 2c 62 29 09 28 28 28 |Clr32(r,|g,b).(((|
|00000370| 72 20 26 20 30 78 46 46 | 30 30 29 20 3c 3c 20 38 |r & 0xFF|00) << 8|
|00000380| 29 20 7c 20 28 67 20 26 | 20 30 78 46 46 30 30 29 |) | (g &| 0xFF00)|
|00000390| 20 7c 20 28 62 20 3e 3e | 20 38 29 29 0d 23 65 6c | | (b >>| 8)).#el|
|000003a0| 69 66 20 45 47 5f 57 49 | 4e 0d 23 64 65 66 69 6e |if EG_WI|N.#defin|
|000003b0| 65 09 5f 5f 43 6c 72 33 | 32 28 72 2c 67 2c 62 29 |e.__Clr3|2(r,g,b)|
|000003c0| 09 5f 5f 77 69 6e 52 47 | 42 28 20 72 2c 20 67 2c |.__winRG|B( r, g,|
|000003d0| 20 62 20 29 0d 23 65 6e | 64 69 66 0d 0d 23 64 65 | b ).#en|dif..#de|
|000003e0| 66 69 6e 65 20 5f 5f 43 | 6c 72 52 45 46 28 20 72 |fine __C|lrREF( r|
|000003f0| 67 62 20 29 20 5f 5f 43 | 6c 72 33 32 28 20 72 67 |gb ) __C|lr32( rg|
|00000400| 62 2e 72 65 64 2c 20 72 | 67 62 2e 67 72 65 65 6e |b.red, r|gb.green|
|00000410| 2c 20 72 67 62 2e 62 6c | 75 65 20 29 0d 0d 0d 0d |, rgb.bl|ue )....|
|00000420| 2f 2a 20 20 50 69 78 50 | 6f 72 74 20 69 73 20 61 |/* PixP|ort is a|
|00000430| 20 70 6c 61 74 66 6f 72 | 6d 20 69 6e 64 65 70 20 | platfor|m indep |
|00000440| 64 72 61 77 69 6e 67 20 | 77 6f 72 6c 64 2f 65 6e |drawing |world/en|
|00000450| 76 69 72 6f 6e 6d 65 6e | 74 2e 20 20 59 6f 75 20 |vironmen|t. You |
|00000460| 73 65 74 20 74 68 65 20 | 73 69 7a 65 20 6f 66 20 |set the |size of |
|00000470| 6f 6e 65 20 75 73 69 6e | 67 0d 49 6e 69 74 28 29 |one usin|g.Init()|
|00000480| 20 61 6e 64 20 74 68 65 | 6e 20 65 78 65 63 75 74 | and the|n execut|
|00000490| 65 20 77 68 61 74 65 76 | 65 72 20 64 72 61 77 69 |e whatev|er drawi|
|000004a0| 6e 67 20 63 6f 6d 6d 61 | 6e 64 73 2e 20 57 68 65 |ng comma|nds. Whe|
|000004b0| 6e 20 74 68 65 20 64 72 | 61 77 69 6e 67 20 69 73 |n the dr|awing is|
|000004c0| 20 63 6f 6d 70 6c 65 74 | 65 2c 20 43 6f 70 79 42 | complet|e, CopyB|
|000004d0| 69 74 73 28 29 20 0d 63 | 6f 70 69 65 73 20 70 69 |its() .c|opies pi|
|000004e0| 78 65 6c 20 64 61 74 61 | 20 66 72 6f 6d 20 74 68 |xel data| from th|
|000004f0| 69 73 20 77 6f 72 6c 64 | 20 74 6f 20 74 68 65 20 |is world| to the |
|00000500| 67 69 76 65 6e 20 64 65 | 73 74 69 6e 61 74 69 6f |given de|stinatio|
|00000510| 6e 20 4f 53 20 67 72 61 | 70 68 69 63 73 20 77 6f |n OS gra|phics wo|
|00000520| 72 6c 64 2e 20 20 2a 2f | 0d 09 0d 0d 0d 0d 2f 2a |rld. */|....../*|
|00000530| 20 0d 09 54 68 69 73 20 | 63 6c 61 73 73 20 77 72 | ..This |class wr|
|00000540| 61 70 73 20 61 72 6f 75 | 6e 64 20 41 70 70 6c 65 |aps arou|nd Apple|
|00000550| 27 73 20 47 61 6d 65 53 | 70 72 6f 6b 65 74 73 20 |'s GameS|prokets |
|00000560| 73 75 69 74 65 2c 20 44 | 72 61 77 53 70 72 6f 6b |suite, D|rawSprok|
|00000570| 65 74 73 2e 20 20 49 74 | 20 69 6d 70 6c 65 6d 65 |ets. It| impleme|
|00000580| 6e 74 73 20 70 61 67 65 | 20 0d 66 6c 69 70 70 69 |nts page| .flippi|
|00000590| 6e 67 20 77 68 65 6e 65 | 76 65 72 20 70 6f 73 73 |ng whene|ver poss|
|000005a0| 69 62 6c 65 2c 20 61 6c | 6c 6f 77 69 6e 67 20 66 |ible, al|lowing f|
|000005b0| 6f 72 20 76 65 72 79 20 | 68 69 67 68 20 70 65 72 |or very |high per|
|000005c0| 66 6f 72 6d 61 6e 63 65 | 20 67 72 61 66 78 2e 20 |formance| grafx. |
|000005d0| 20 54 6f 20 75 73 65 20 | 69 74 2c 20 6d 61 6b 65 | To use |it, make|
|000005e0| 20 0d 61 6e 20 69 6e 73 | 74 61 6e 63 65 20 6f 66 | .an ins|tance of|
|000005f0| 20 43 44 72 61 77 53 70 | 72 6f 6b 65 74 20 61 74 | CDrawSp|roket at|
|00000600| 20 74 68 65 20 73 74 61 | 72 74 20 6f 66 20 79 6f | the sta|rt of yo|
|00000610| 75 72 20 70 72 6f 67 2c | 20 63 61 6c 6c 20 54 72 |ur prog,| call Tr|
|00000620| 79 49 6e 69 74 28 29 2c | 20 74 68 65 6e 20 41 63 |yInit(),| then Ac|
|00000630| 74 69 76 61 74 65 28 29 | 0d 61 6e 64 20 79 6f 75 |tivate()|.and you|
|00000640| 27 72 65 20 61 6c 6c 20 | 73 65 74 20 76 69 61 20 |'re all |set via |
|00000650| 53 77 61 70 42 75 66 66 | 65 72 73 28 29 2e 20 20 |SwapBuff|ers(). |
|00000660| 57 68 65 6e 20 79 6f 75 | 27 72 65 20 64 6f 6e 65 |When you|'re done|
|00000670| 20 75 73 69 6e 67 20 74 | 68 65 20 64 69 73 70 6c | using t|he displ|
|00000680| 61 79 2c 20 79 6f 75 20 | 6d 75 73 74 20 63 61 6c |ay, you |must cal|
|00000690| 6c 0d 44 65 61 63 74 69 | 76 61 74 65 28 29 20 74 |l.Deacti|vate() t|
|000006a0| 6f 20 67 69 76 65 20 74 | 68 65 20 64 69 73 70 6c |o give t|he displ|
|000006b0| 61 79 20 62 61 63 6b 20 | 74 6f 20 74 68 65 20 4f |ay back |to the O|
|000006c0| 53 20 66 6f 72 20 6e 6f | 72 6d 61 6c 20 75 73 65 |S for no|rmal use|
|000006d0| 2e 0d 2a 2f 0d 0d 63 6c | 61 73 73 20 50 69 78 50 |..*/..cl|ass PixP|
|000006e0| 6f 72 74 20 7b 0d 0d 0d | 09 70 75 62 6c 69 63 3a |ort {...|.public:|
|000006f0| 0d 09 0d 09 09 66 72 69 | 65 6e 64 20 63 6c 61 73 |.....fri|end clas|
|00000700| 73 20 50 69 78 50 6f 72 | 74 3b 0d 09 09 09 09 09 |s PixPor|t;......|
|00000710| 09 09 09 20 50 69 78 50 | 6f 72 74 28 29 3b 0d 09 |... PixP|ort();..|
|00000720| 09 76 69 72 74 75 61 6c | 09 09 09 09 09 7e 50 69 |.virtual|.....~Pi|
|00000730| 78 50 6f 72 74 28 29 3b | 0d 0d 09 09 2f 2f 20 54 |xPort();|....// T|
|00000740| 68 65 73 65 20 2a 6d 75 | 73 74 2a 20 62 65 20 63 |hese *mu|st* be c|
|00000750| 61 6c 6c 65 64 20 6f 6e | 63 65 20 61 74 20 74 68 |alled on|ce at th|
|00000760| 65 20 73 74 61 72 74 20 | 61 6e 64 20 65 6e 64 20 |e start |and end |
|00000770| 6f 66 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 72 |of the p|rogram r|
|00000780| 65 73 70 65 63 74 69 76 | 65 6c 79 2e 0d 09 09 2f |espectiv|ely..../|
|00000790| 2f 20 4f 74 68 65 72 77 | 69 73 65 20 44 72 61 77 |/ Otherw|ise Draw|
|000007a0| 53 70 72 6f 6b 65 74 73 | 20 6e 65 76 65 72 20 67 |Sprokets| never g|
|000007b0| 65 74 20 69 6e 69 74 69 | 61 6c 69 7a 65 64 2d 2d |et initi|alized--|
|000007c0| 61 6e 64 20 74 68 61 74 | 27 73 20 76 65 72 79 20 |and that|'s very |
|000007d0| 62 61 64 2e 0d 09 09 2f | 2f 09 49 66 20 53 74 61 |bad..../|/.If Sta|
|000007e0| 72 74 75 70 28 29 20 72 | 65 74 75 72 6e 73 20 66 |rtup() r|eturns f|
|000007f0| 61 6c 73 65 2c 20 69 74 | 20 6d 65 61 6e 73 20 66 |alse, it| means f|
|00000800| 75 6c 6c 73 63 72 65 65 | 6e 20 69 73 20 6e 6f 74 |ullscree|n is not|
|00000810| 20 61 76 61 69 6c 61 62 | 6c 65 21 21 0d 09 09 73 | availab|le!!...s|
|00000820| 74 61 74 69 63 20 76 6f | 69 64 09 09 09 09 53 74 |tatic vo|id....St|
|00000830| 61 72 74 75 70 28 29 3b | 0d 09 09 73 74 61 74 69 |artup();|...stati|
|00000840| 63 20 76 6f 69 64 09 09 | 09 09 53 68 75 74 64 6f |c void..|..Shutdo|
|00000850| 77 6e 28 29 3b 0d 0d 09 | 09 2f 2f 20 55 74 69 6c |wn();...|.// Util|
|00000860| 20 66 63 6e 20 74 68 61 | 74 20 72 65 74 75 72 6e | fcn tha|t return|
|00000870| 73 20 74 68 65 20 64 69 | 73 70 6c 61 79 20 6e 75 |s the di|splay nu|
|00000880| 6d 62 65 72 20 6f 66 20 | 74 68 65 20 67 69 76 65 |mber of |the give|
|00000890| 6e 20 6d 6f 75 73 65 20 | 70 6f 69 6e 74 20 69 6e |n mouse |point in|
|000008a0| 20 67 6c 6f 62 61 6c 20 | 63 6f 72 64 73 2e 0d 09 | global |cords...|
|000008b0| 09 2f 2f 20 49 66 20 30 | 20 69 73 20 72 65 74 75 |.// If 0| is retu|
|000008c0| 72 6e 65 64 20 69 66 20 | 74 68 65 20 63 61 6c 6c |rned if |the call|
|000008d0| 20 66 61 69 6c 65 64 2e | 20 20 55 73 65 20 74 68 | failed.| Use th|
|000008e0| 65 20 6e 75 6d 62 65 72 | 20 72 65 74 75 72 6e 65 |e number| returne|
|000008f0| 64 20 68 65 72 65 20 66 | 6f 72 20 49 6e 69 74 46 |d here f|or InitF|
|00000900| 75 6c 6c 73 63 72 65 65 | 6e 28 29 0d 09 09 73 74 |ullscree|n()...st|
|00000910| 61 74 69 63 20 6c 6f 6e | 67 09 09 09 09 47 65 74 |atic lon|g....Get|
|00000920| 4f 77 6e 69 6e 67 44 69 | 73 70 6c 61 79 28 20 63 |OwningDi|splay( c|
|00000930| 6f 6e 73 74 20 50 6f 69 | 6e 74 26 20 69 6e 50 74 |onst Poi|nt& inPt|
|00000940| 20 29 3b 0d 09 09 0d 09 | 09 2f 2f 20 52 65 74 75 | );.....|.// Retu|
|00000950| 72 6e 73 20 74 72 75 65 | 20 69 66 20 50 69 78 50 |rns true| if PixP|
|00000960| 6f 72 74 73 20 61 72 65 | 20 61 62 6c 65 20 74 6f |orts are| able to|
|00000970| 20 74 61 6b 65 20 6f 76 | 65 72 20 61 20 73 63 72 | take ov|er a scr|
|00000980| 65 65 6e 0d 09 09 73 74 | 61 74 69 63 20 62 6f 6f |een...st|atic boo|
|00000990| 6c 09 09 09 09 46 75 6c | 6c 73 63 72 65 65 6e 41 |l....Ful|lscreenA|
|000009a0| 76 61 69 6c 28 29 09 09 | 09 09 09 09 09 7b 20 72 |vail()..|.....{ r|
|000009b0| 65 74 75 72 6e 20 73 43 | 61 6e 46 75 6c 6c 73 63 |eturn sC|anFullsc|
|000009c0| 72 65 65 6e 3b 09 7d 0d | 0d 09 09 2f 2f 20 4f 6e |reen;.}.|...// On|
|000009d0| 65 20 6f 72 20 74 68 65 | 20 6f 74 68 65 72 20 6d |e or the| other m|
|000009e0| 75 73 74 20 62 65 20 63 | 61 6c 6c 65 64 20 62 65 |ust be c|alled be|
|000009f0| 66 6f 72 65 20 61 20 50 | 69 78 50 6f 72 74 20 69 |fore a P|ixPort i|
|00000a00| 73 20 75 73 65 64 2e 20 | 20 49 66 20 69 6e 44 65 |s used. | If inDe|
|00000a10| 70 74 68 20 69 73 20 30 | 20 6f 72 20 69 6e 76 61 |pth is 0| or inva|
|00000a20| 6c 69 64 2c 0d 09 09 2f | 2f 20 74 68 65 20 63 75 |lid,.../|/ the cu|
|00000a30| 72 72 65 6e 74 20 4f 53 | 20 64 65 70 74 68 20 69 |rrent OS| depth i|
|00000a40| 73 20 75 73 65 64 2e 20 | 20 43 61 6c 6c 20 44 65 |s used. | Call De|
|00000a50| 61 63 74 69 76 61 74 65 | 28 29 20 6f 72 20 49 6e |activate|() or In|
|00000a60| 69 74 28 29 20 74 6f 20 | 65 78 69 74 20 66 75 6c |it() to |exit ful|
|00000a70| 6c 73 63 72 65 65 6e 20 | 6d 6f 64 65 2e 0d 09 09 |lscreen |mode....|
|00000a80| 2f 2f 20 69 6e 57 69 6e | 20 69 73 20 70 61 73 73 |// inWin| is pass|
|00000a90| 65 64 20 62 65 63 61 75 | 73 65 20 50 69 78 50 6f |ed becau|se PixPo|
|00000aa0| 72 74 20 6d 61 79 20 6e | 65 65 64 20 74 68 65 20 |rt may n|eed the |
|00000ab0| 77 69 6e 64 6f 77 20 74 | 68 61 74 27 73 20 67 6f |window t|hat's go|
|00000ac0| 69 6e 67 20 66 75 6c 6c | 73 63 72 65 65 6e 0d 09 |ing full|screen..|
|00000ad0| 09 76 6f 69 64 09 09 09 | 09 09 49 6e 69 74 28 20 |.void...|..Init( |
|00000ae0| 69 6e 74 20 69 6e 57 69 | 64 74 68 2c 20 69 6e 74 |int inWi|dth, int|
|00000af0| 20 69 6e 48 65 69 67 68 | 74 2c 20 69 6e 74 20 69 | inHeigh|t, int i|
|00000b00| 6e 44 65 70 74 68 20 3d | 20 30 20 29 3b 0d 09 09 |nDepth =| 0 );...|
|00000b10| 62 6f 6f 6c 09 09 09 09 | 09 49 6e 69 74 46 75 6c |bool....|.InitFul|
|00000b20| 6c 73 63 72 65 65 6e 28 | 20 69 6e 74 20 69 6e 44 |lscreen(| int inD|
|00000b30| 69 73 70 4e 75 6d 2c 20 | 50 6f 69 6e 74 26 20 6f |ispNum, |Point& o|
|00000b40| 75 74 53 69 7a 65 2c 20 | 57 69 6e 64 6f 77 50 74 |utSize, |WindowPt|
|00000b50| 72 20 69 6e 57 69 6e 2c | 20 69 6e 74 20 69 6e 42 |r inWin,| int inB|
|00000b60| 69 74 44 65 70 74 68 20 | 3d 20 30 20 20 29 3b 0d |itDepth |= 0 );.|
|00000b70| 09 0d 09 09 2f 2f 20 52 | 65 74 75 72 6e 73 20 74 |....// R|eturns t|
|00000b80| 72 75 65 20 69 66 20 63 | 75 72 72 65 6e 74 6c 79 |rue if c|urrently|
|00000b90| 20 69 6e 20 66 75 6c 6c | 73 63 72 65 65 6e 20 6d | in full|screen m|
|00000ba0| 6f 64 65 20 28 69 65 2c | 20 49 6e 69 74 46 75 6c |ode (ie,| InitFul|
|00000bb0| 6c 73 63 72 65 65 6e 28 | 29 20 72 65 74 75 72 6e |lscreen(|) return|
|00000bc0| 65 64 20 74 72 75 65 29 | 0d 09 09 69 6e 6c 69 6e |ed true)|...inlin|
|00000bd0| 65 20 62 6f 6f 6c 09 09 | 09 09 49 73 46 75 6c 6c |e bool..|..IsFull|
|00000be0| 73 63 72 65 65 6e 28 29 | 20 63 6f 6e 73 74 09 09 |screen()| const..|
|00000bf0| 09 09 09 09 7b 20 72 65 | 74 75 72 6e 20 6d 43 6f |....{ re|turn mCo|
|00000c00| 6e 74 65 78 74 52 65 66 | 20 21 3d 20 30 3b 20 7d |ntextRef| != 0; }|
|00000c10| 0d 09 09 09 0d 09 09 2f | 2f 09 50 6f 6c 69 74 65 |......./|/.Polite|
|00000c20| 6c 79 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 61 |ly retur|ns the a|
|00000c30| 63 74 69 76 61 74 65 64 | 20 64 69 73 70 6c 61 79 |ctivated| display|
|00000c40| 20 74 6f 20 69 74 27 73 | 20 6e 6f 72 6d 61 6c 20 | to it's| normal |
|00000c50| 73 74 61 74 65 20 62 65 | 66 6f 72 65 20 41 63 74 |state be|fore Act|
|00000c60| 69 76 61 74 65 28 29 3b | 0d 09 09 76 6f 69 64 09 |ivate();|...void.|
|00000c70| 09 09 09 09 44 65 61 63 | 74 69 76 61 74 65 28 29 |....Deac|tivate()|
|00000c80| 3b 0d 0d 09 09 2f 2f 20 | 52 65 74 75 72 6e 73 20 |;....// |Returns |
|00000c90| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 69 74 20 |the curr|ent bit |
|00000ca0| 63 6f 6c 6f 72 20 64 65 | 70 74 68 20 66 72 6f 6d |color de|pth from|
|00000cb0| 20 49 6e 69 74 28 29 2e | 20 28 38 2c 20 31 36 2c | Init().| (8, 16,|
|00000cc0| 20 6f 72 20 33 32 29 0d | 09 09 6c 6f 6e 67 09 09 | or 32).|..long..|
|00000cd0| 09 09 09 47 65 74 44 65 | 70 74 68 28 29 09 09 09 |...GetDe|pth()...|
|00000ce0| 09 09 09 09 09 09 09 09 | 7b 20 72 65 74 75 72 6e |........|{ return|
|00000cf0| 20 6d 42 79 74 65 73 50 | 65 72 50 69 78 20 2a 20 | mBytesP|erPix * |
|00000d00| 38 3b 20 09 7d 0d 09 0d | 09 09 2f 2f 09 53 65 74 |8; .}...|..//.Set|
|00000d10| 73 20 74 68 65 20 62 61 | 63 6b 67 72 6f 75 6e 64 |s the ba|ckground|
|00000d20| 20 63 6f 6c 6f 72 73 20 | 28 66 6f 72 20 65 72 61 | colors |(for era|
|00000d30| 73 65 20 72 65 63 74 20 | 61 6e 64 20 42 6c 75 72 |se rect |and Blur|
|00000d40| 28 29 20 29 0d 09 09 2f | 2f 20 20 52 65 74 75 72 |() ).../|/ Retur|
|00000d50| 6e 73 20 74 68 65 20 6e | 65 77 20 70 69 78 65 6c |ns the n|ew pixel|
|00000d60| 20 65 6e 74 72 79 20 66 | 6f 72 20 74 68 65 20 67 | entry f|or the g|
|00000d70| 69 76 65 6e 20 63 6f 6c | 6f 72 20 61 6e 64 20 74 |iven col|or and t|
|00000d80| 68 69 73 20 70 6f 72 74 | 0d 09 09 6c 6f 6e 67 09 |his port|...long.|
|00000d90| 09 09 09 09 53 65 74 42 | 61 63 6b 43 6f 6c 6f 72 |....SetB|ackColor|
|00000da0| 28 20 63 6f 6e 73 74 20 | 52 47 42 43 6f 6c 6f 72 |( const |RGBColor|
|00000db0| 26 20 69 6e 43 6f 6c 6f | 72 20 29 3b 0d 09 09 6c |& inColo|r );...l|
|00000dc0| 6f 6e 67 09 09 09 09 09 | 53 65 74 42 61 63 6b 43 |ong.....|SetBackC|
|00000dd0| 6f 6c 6f 72 28 20 6c 6f | 6e 67 20 69 6e 52 2c 20 |olor( lo|ng inR, |
|00000de0| 6c 6f 6e 67 20 69 6e 47 | 2c 20 6c 6f 6e 67 20 69 |long inG|, long i|
|00000df0| 6e 42 20 29 3b 0d 0d 09 | 09 2f 2f 09 42 65 20 73 |nB );...|.//.Be s|
|00000e00| 75 72 65 20 74 68 69 73 | 20 69 73 20 63 61 6c 6c |ure this| is call|
|00000e10| 65 64 20 62 65 66 6f 72 | 65 20 61 6e 64 20 61 66 |ed befor|e and af|
|00000e20| 74 65 72 20 2a 61 6e 79 | 2a 20 6f 66 20 74 68 65 |ter *any|* of the|
|00000e30| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 61 6c 6c 73 | followi|ng calls|
|00000e40| 0d 09 09 76 6f 69 64 09 | 09 09 09 09 42 65 67 69 |...void.|....Begi|
|00000e50| 6e 46 72 61 6d 65 28 29 | 3b 0d 09 09 76 6f 69 64 |nFrame()|;...void|
|00000e60| 09 09 09 09 09 45 6e 64 | 46 72 61 6d 65 28 29 3b |.....End|Frame();|
|00000e70| 0d 0d 09 09 2f 2f 09 42 | 6c 75 72 73 20 74 68 65 |....//.B|lurs the|
|00000e80| 20 72 65 63 74 20 67 69 | 76 65 6e 20 69 6e 20 74 | rect gi|ven in t|
|00000e90| 68 69 73 20 69 6d 61 67 | 65 2c 20 77 69 74 68 20 |his imag|e, with |
|00000ea0| 61 20 67 69 76 65 6e 20 | 62 6f 78 20 66 69 6c 74 |a given |box filt|
|00000eb0| 65 72 20 6f 66 20 73 69 | 7a 65 20 28 31 3d 6e 6f |er of si|ze (1=no|
|00000ec0| 20 62 6c 75 72 29 0d 09 | 09 2f 2f 09 49 66 20 74 | blur)..|.//.If t|
|00000ed0| 68 65 20 64 65 73 74 20 | 69 73 20 4e 55 4c 4c 2c |he dest |is NULL,|
|00000ee0| 20 74 68 65 20 62 6c 75 | 72 20 69 73 20 61 70 70 | the blu|r is app|
|00000ef0| 6c 69 65 64 20 74 6f 20 | 69 74 73 65 6c 66 0d 09 |lied to |itself..|
|00000f00| 09 76 6f 69 64 09 09 09 | 09 09 47 61 75 73 73 42 |.void...|..GaussB|
|00000f10| 6c 75 72 28 20 69 6e 74 | 20 69 6e 42 6f 78 57 69 |lur( int| inBoxWi|
|00000f20| 64 74 68 2c 20 63 6f 6e | 73 74 20 52 65 63 74 26 |dth, con|st Rect&|
|00000f30| 20 69 6e 52 65 63 74 2c | 20 76 6f 69 64 2a 20 69 | inRect,| void* i|
|00000f40| 6e 44 65 73 74 42 69 74 | 73 20 3d 20 4e 55 4c 4c |nDestBit|s = NULL|
|00000f50| 20 29 3b 09 0d 09 09 0d | 09 09 2f 2f 09 41 20 64 | );.....|..//.A d|
|00000f60| 69 66 66 65 72 65 6e 74 | 2c 20 6d 6f 72 65 20 70 |ifferent|, more p|
|00000f70| 72 69 6d 69 74 69 76 65 | 20 62 6c 75 72 20 74 68 |rimitive| blur th|
|00000f80| 61 74 20 64 6f 65 73 6e | 27 74 20 6c 6f 6f 6b 20 |at doesn|'t look |
|00000f90| 61 73 20 67 6f 6f 64 20 | 61 73 20 47 61 75 73 73 |as good |as Gauss|
|00000fa0| 42 6c 75 72 2c 0d 09 09 | 76 6f 69 64 09 09 09 09 |Blur,...|void....|
|00000fb0| 09 43 72 6f 73 73 42 6c | 75 72 28 20 63 6f 6e 73 |.CrossBl|ur( cons|
|00000fc0| 74 20 52 65 63 74 26 20 | 69 6e 52 65 63 74 20 29 |t Rect& |inRect )|
|00000fd0| 3b 0d 0d 09 09 2f 2f 20 | 09 53 65 74 73 20 74 68 |;....// |.Sets th|
|00000fe0| 65 20 77 69 64 74 68 20 | 6f 66 20 74 68 65 20 70 |e width |of the p|
|00000ff0| 65 6e 0d 09 09 76 6f 69 | 64 09 09 09 09 09 53 65 |en...voi|d.....Se|
|00001000| 74 4c 69 6e 65 57 69 64 | 74 68 28 20 6c 6f 6e 67 |tLineWid|th( long|
|00001010| 20 69 6e 57 69 64 74 68 | 20 29 3b 0d 09 09 0d 09 | inWidth| );.....|
|00001020| 09 2f 2f 09 44 72 61 77 | 20 61 20 6c 69 6e 65 2e |.//.Draw| a line.|
|00001030| 20 20 55 73 65 20 47 65 | 74 50 6f 72 74 43 6f 6c | Use Ge|tPortCol|
|00001040| 6f 72 28 29 20 74 6f 20 | 67 65 74 20 61 20 64 65 |or() to |get a de|
|00001050| 76 69 63 65 20 63 6f 6c | 6f 72 20 66 6f 72 20 61 |vice col|or for a|
|00001060| 20 52 47 42 0d 09 09 76 | 6f 69 64 09 09 09 09 09 | RGB...v|oid.....|
|00001070| 4c 69 6e 65 28 20 69 6e | 74 20 73 78 2c 20 69 6e |Line( in|t sx, in|
|00001080| 74 20 73 79 2c 20 69 6e | 74 20 65 78 2c 20 69 6e |t sy, in|t ex, in|
|00001090| 74 20 65 79 2c 20 6c 6f | 6e 67 20 69 6e 43 6f 6c |t ey, lo|ng inCol|
|000010a0| 6f 72 20 29 3b 0d 09 09 | 76 6f 69 64 09 09 09 09 |or );...|void....|
|000010b0| 09 4c 69 6e 65 28 20 69 | 6e 74 20 73 78 2c 20 69 |.Line( i|nt sx, i|
|000010c0| 6e 74 20 73 79 2c 20 69 | 6e 74 20 65 78 2c 20 69 |nt sy, i|nt ex, i|
|000010d0| 6e 74 20 65 79 2c 20 63 | 6f 6e 73 74 20 52 47 42 |nt ey, c|onst RGB|
|000010e0| 43 6f 6c 6f 72 26 20 69 | 6e 53 2c 20 63 6f 6e 73 |Color& i|nS, cons|
|000010f0| 74 20 52 47 42 43 6f 6c | 6f 72 26 20 69 6e 45 20 |t RGBCol|or& inE |
|00001100| 29 3b 0d 0d 09 09 69 6e | 6c 69 6e 65 20 6c 6f 6e |);....in|line lon|
|00001110| 67 09 09 09 09 47 65 74 | 50 6f 72 74 43 6f 6c 6f |g....Get|PortColo|
|00001120| 72 5f 69 6e 6c 69 6e 65 | 28 20 6c 6f 6e 67 20 69 |r_inline|( long i|
|00001130| 6e 52 2c 20 6c 6f 6e 67 | 20 69 6e 47 2c 20 6c 6f |nR, long| inG, lo|
|00001140| 6e 67 20 69 6e 42 20 29 | 20 7b 0d 09 09 09 69 66 |ng inB )| {....if|
|00001150| 20 28 20 6d 42 79 74 65 | 73 50 65 72 50 69 78 20 | ( mByte|sPerPix |
|00001160| 3d 3d 20 32 20 29 0d 09 | 09 09 09 72 65 74 75 72 |== 2 )..|...retur|
|00001170| 6e 20 5f 5f 43 6c 72 31 | 36 28 20 69 6e 52 2c 20 |n __Clr1|6( inR, |
|00001180| 69 6e 47 2c 20 69 6e 42 | 20 29 3b 0d 09 09 09 65 |inG, inB| );....e|
|00001190| 6c 73 65 20 69 66 20 28 | 20 6d 42 79 74 65 73 50 |lse if (| mBytesP|
|000011a0| 65 72 50 69 78 20 3d 3d | 20 34 20 29 20 0d 09 09 |erPix ==| 4 ) ...|
|000011b0| 09 09 72 65 74 75 72 6e | 20 5f 5f 43 6c 72 33 32 |..return| __Clr32|
|000011c0| 28 20 69 6e 52 2c 20 69 | 6e 47 2c 20 69 6e 42 20 |( inR, i|nG, inB |
|000011d0| 29 3b 0d 09 09 09 65 6c | 73 65 0d 09 09 09 09 72 |);....el|se.....r|
|000011e0| 65 74 75 72 6e 20 5f 5f | 43 6c 72 38 28 20 69 6e |eturn __|Clr8( in|
|000011f0| 52 2c 20 69 6e 47 2c 20 | 69 6e 42 20 29 3b 0d 09 |R, inG, |inB );..|
|00001200| 09 7d 0d 09 09 0d 09 09 | 2f 2f 09 53 65 74 20 74 |.}......|//.Set t|
|00001210| 68 65 20 67 69 76 65 6e | 20 72 65 63 74 20 74 6f |he given| rect to|
|00001220| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 62 61 63 | the cur|rent bac|
|00001230| 6b 67 72 6f 75 6e 64 20 | 63 6f 6c 6f 72 2e 20 20 |kground |color. |
|00001240| 49 66 20 6e 6f 20 72 65 | 63 74 20 69 73 20 73 70 |If no re|ct is sp|
|00001250| 65 63 69 66 69 65 64 2c | 20 74 68 65 20 65 6e 74 |ecified,| the ent|
|00001260| 69 72 65 20 70 6f 72 74 | 20 72 65 63 74 20 69 73 |ire port| rect is|
|00001270| 20 63 6c 65 61 72 65 64 | 2e 0d 09 09 76 6f 69 64 | cleared|....void|
|00001280| 09 09 09 09 09 45 72 61 | 73 65 52 65 63 74 28 20 |.....Era|seRect( |
|00001290| 63 6f 6e 73 74 20 52 65 | 63 74 2a 20 69 6e 52 65 |const Re|ct* inRe|
|000012a0| 63 74 20 3d 20 4e 55 4c | 4c 20 29 3b 0d 09 09 0d |ct = NUL|L );....|
|000012b0| 09 09 2f 2f 09 43 6f 70 | 69 65 73 20 74 68 65 20 |..//.Cop|ies the |
|000012c0| 70 69 78 65 6c 73 20 69 | 6e 20 61 20 72 65 63 74 |pixels i|n a rect|
|000012d0| 61 6e 67 6c 65 20 66 72 | 6f 6d 20 74 68 69 73 20 |angle fr|om this |
|000012e0| 69 6d 61 67 65 20 74 6f | 20 74 68 65 20 64 65 73 |image to| the des|
|000012f0| 74 69 6e 61 74 69 6f 6e | 0d 09 09 76 6f 69 64 09 |tination|...void.|
|00001300| 09 09 09 09 43 6f 70 79 | 42 69 74 73 28 20 57 69 |....Copy|Bits( Wi|
|00001310| 6e 64 6f 77 50 74 72 20 | 69 6e 44 65 73 74 2c 20 |ndowPtr |inDest, |
|00001320| 63 6f 6e 73 74 20 52 65 | 63 74 2a 20 69 6e 53 72 |const Re|ct* inSr|
|00001330| 63 52 65 63 74 2c 20 63 | 6f 6e 73 74 20 52 65 63 |cRect, c|onst Rec|
|00001340| 74 2a 20 69 6e 44 65 73 | 74 52 65 63 74 20 29 3b |t* inDes|tRect );|
|00001350| 0d 0d 09 09 09 09 0d 09 | 09 2f 2f 09 47 65 74 73 |........|.//.Gets|
|00001360| 20 61 20 70 6f 72 74 2f | 64 65 76 69 63 65 20 63 | a port/|device c|
|00001370| 6f 6c 6f 72 20 66 6f 72 | 20 61 20 67 69 76 65 6e |olor for| a given|
|00001380| 20 52 47 42 09 09 0d 09 | 09 6c 6f 6e 67 09 09 09 | RGB....|.long...|
|00001390| 09 09 47 65 74 50 6f 72 | 74 43 6f 6c 6f 72 28 20 |..GetPor|tColor( |
|000013a0| 6c 6f 6e 67 20 69 6e 52 | 2c 20 6c 6f 6e 67 20 69 |long inR|, long i|
|000013b0| 6e 47 2c 20 6c 6f 6e 67 | 20 69 6e 42 20 29 3b 0d |nG, long| inB );.|
|000013c0| 09 09 69 6e 6c 69 6e 65 | 20 6c 6f 6e 67 09 09 09 |..inline| long...|
|000013d0| 09 47 65 74 50 6f 72 74 | 43 6f 6c 6f 72 28 20 63 |.GetPort|Color( c|
|000013e0| 6f 6e 73 74 20 52 47 42 | 43 6f 6c 6f 72 26 20 69 |onst RGB|Color& i|
|000013f0| 6e 43 6f 6c 6f 72 20 29 | 20 20 09 09 7b 20 72 65 |nColor )| ..{ re|
|00001400| 74 75 72 6e 20 47 65 74 | 50 6f 72 74 43 6f 6c 6f |turn Get|PortColo|
|00001410| 72 28 20 69 6e 43 6f 6c | 6f 72 2e 72 65 64 2c 20 |r( inCol|or.red, |
|00001420| 69 6e 43 6f 6c 6f 72 2e | 67 72 65 65 6e 2c 20 69 |inColor.|green, i|
|00001430| 6e 43 6f 6c 6f 72 2e 62 | 6c 75 65 20 29 3b 20 20 |nColor.b|lue ); |
|00001440| 7d 0d 09 0d 09 09 2f 2f | 09 54 68 65 20 67 75 74 |}.....//|.The gut|
|00001450| 73 20 66 6f 72 20 47 2d | 46 6f 72 63 65 2e 2e 2e |s for G-|Force...|
|00001460| 20 20 54 68 69 73 20 50 | 69 78 50 6f 72 74 20 6d | This P|ixPort m|
|00001470| 75 73 74 20 62 65 20 69 | 6e 20 38 2d 62 69 74 20 |ust be i|n 8-bit |
|00001480| 6d 6f 64 65 20 74 6f 20 | 64 6f 20 61 6e 79 74 68 |mode to |do anyth|
|00001490| 69 6e 67 2e 0d 09 09 76 | 6f 69 64 09 09 09 09 09 |ing....v|oid.....|
|000014a0| 46 61 64 65 28 20 50 69 | 78 50 6f 72 74 26 20 69 |Fade( Pi|xPort& i|
|000014b0| 6f 44 65 73 74 2c 20 63 | 68 61 72 2a 20 69 6e 47 |oDest, c|har* inG|
|000014c0| 72 61 64 20 29 3b 0d 09 | 09 0d 09 09 2f 2f 20 57 |rad );..|....// W|
|000014d0| 68 65 6e 20 69 6e 20 66 | 75 6c 6c 73 63 72 65 65 |hen in f|ullscree|
|000014e0| 6e 2c 20 75 73 65 20 74 | 68 69 73 20 28 6f 6e 20 |n, use t|his (on |
|000014f0| 6d 61 63 29 20 74 6f 20 | 64 65 63 6c 61 72 65 20 |mac) to |declare |
|00001500| 77 68 61 74 27 73 20 61 | 72 65 61 20 6e 65 65 64 |what's a|rea need|
|00001510| 73 20 74 6f 20 62 65 20 | 75 70 64 61 74 65 64 20 |s to be |updated |
|00001520| 6f 6e 20 73 63 72 65 65 | 6e 0d 09 09 76 6f 69 64 |on scree|n...void|
|00001530| 09 09 09 09 09 55 6e 69 | 6f 6e 44 69 72 74 79 52 |.....Uni|onDirtyR|
|00001540| 65 63 74 28 20 63 6f 6e | 73 74 20 52 65 63 74 2a |ect( con|st Rect*|
|00001550| 20 69 6e 44 69 72 74 79 | 52 65 63 74 20 29 3b 0d | inDirty|Rect );.|
|00001560| 09 09 09 09 0d 09 09 2f | 2f 09 57 68 65 6e 20 74 |......./|/.When t|
|00001570| 68 69 73 20 73 70 72 6f | 63 6b 65 74 20 69 73 20 |his spro|cket is |
|00001580| 73 65 74 20 74 6f 20 32 | 35 36 20 63 6f 6c 6f 72 |set to 2|56 color|
|00001590| 73 2c 20 79 6f 75 20 6d | 61 79 20 63 68 61 6e 67 |s, you m|ay chang|
|000015a0| 65 20 74 68 65 20 70 61 | 6c 65 74 74 65 20 69 74 |e the pa|lette it|
|000015b0| 27 73 20 75 73 69 6e 67 | 20 61 6e 79 20 74 69 6d |'s using| any tim|
|000015c0| 65 0d 09 09 2f 2f 09 50 | 72 65 3a 20 69 6e 43 6f |e...//.P|re: inCo|
|000015d0| 6c 6f 72 73 5b 5d 2e 72 | 67 62 20 69 73 20 74 68 |lors[].r|gb is th|
|000015e0| 65 20 52 47 42 20 6f 66 | 20 70 61 6c 65 74 74 65 |e RGB of| palette|
|000015f0| 20 65 6e 74 72 79 20 69 | 2e 0d 09 09 2f 2f 09 50 | entry i|....//.P|
|00001600| 6f 73 74 3a 20 20 54 68 | 65 20 63 75 72 72 65 6e |ost: Th|e curren|
|00001610| 74 20 70 61 6c 65 74 74 | 65 20 69 73 20 73 65 74 |t palett|e is set|
|00001620| 20 74 6f 20 69 6e 43 6f | 6c 6f 72 73 5b 5d 0d 09 | to inCo|lors[]..|
|00001630| 09 2f 2f 76 6f 69 64 09 | 09 09 09 09 53 65 74 50 |.//void.|....SetP|
|00001640| 61 6c 65 74 74 65 28 20 | 43 6f 6c 6f 72 53 70 65 |alette( |ColorSpe|
|00001650| 63 20 69 6e 43 6f 6c 6f | 72 73 5b 20 32 35 36 20 |c inColo|rs[ 256 |
|00001660| 5d 20 29 3b 0d 0d 09 09 | 6c 6f 6e 67 09 09 09 09 |] );....|long....|
|00001670| 09 47 65 74 58 28 29 09 | 09 09 7b 20 72 65 74 75 |.GetX().|..{ retu|
|00001680| 72 6e 20 6d 58 3b 20 7d | 0d 09 09 6c 6f 6e 67 09 |rn mX; }|...long.|
|00001690| 09 09 09 09 47 65 74 59 | 28 29 09 09 09 7b 20 72 |....GetY|()...{ r|
|000016a0| 65 74 75 72 6e 20 6d 59 | 3b 20 7d 0d 09 09 09 09 |eturn mY|; }.....|
|000016b0| 0d 09 09 73 74 61 74 69 | 63 20 6c 6f 6e 67 09 09 |...stati|c long..|
|000016c0| 09 09 73 4d 69 6e 44 65 | 70 74 68 3b 0d 09 09 73 |..sMinDe|pth;...s|
|000016d0| 74 61 74 69 63 20 6c 6f | 6e 67 09 09 09 09 73 4f |tatic lo|ng....sO|
|000016e0| 53 44 65 70 74 68 3b 0d | 0d 09 09 0d 09 09 23 64 |SDepth;.|......#d|
|000016f0| 65 66 69 6e 65 20 4d 41 | 58 5f 4c 49 4e 45 5f 57 |efine MA|X_LINE_W|
|00001700| 49 44 54 48 09 09 33 32 | 0d 09 0d 09 09 0d 09 70 |IDTH..32|.......p|
|00001710| 72 6f 74 65 63 74 65 64 | 3a 0d 0d 09 09 73 74 61 |rotected|:....sta|
|00001720| 74 69 63 20 6c 6f 6e 67 | 09 09 09 09 73 43 61 6e |tic long|....sCan|
|00001730| 46 75 6c 6c 73 63 72 65 | 65 6e 3b 0d 09 0d 09 09 |Fullscre|en;.....|
|00001740| 6c 6f 6e 67 09 09 09 09 | 09 6d 42 79 74 65 73 50 |long....|.mBytesP|
|00001750| 65 72 50 69 78 3b 0d 09 | 09 6c 6f 6e 67 09 09 09 |erPix;..|.long...|
|00001760| 09 09 6d 42 79 74 65 73 | 50 65 72 52 6f 77 3b 0d |..mBytes|PerRow;.|
|00001770| 09 09 6c 6f 6e 67 09 09 | 09 09 09 6d 58 2c 20 6d |..long..|...mX, m|
|00001780| 59 3b 0d 09 09 6c 6f 6e | 67 09 09 09 09 09 6d 42 |Y;...lon|g.....mB|
|00001790| 61 63 6b 43 6f 6c 6f 72 | 3b 0d 09 09 6c 6f 6e 67 |ackColor|;...long|
|000017a0| 09 09 09 09 09 6d 4c 69 | 6e 65 57 69 64 74 68 3b |.....mLi|neWidth;|
|000017b0| 0d 09 09 55 74 69 6c 53 | 74 72 09 09 09 09 09 6d |...UtilS|tr.....m|
|000017c0| 54 65 6d 70 42 75 66 3b | 0d 09 09 0d 09 09 63 68 |TempBuf;|......ch|
|000017d0| 61 72 2a 09 09 09 09 09 | 6d 42 69 74 73 3b 0d 09 |ar*.....|mBits;..|
|000017e0| 09 0d 09 09 50 69 78 4d | 61 70 48 61 6e 64 6c 65 |....PixM|apHandle|
|000017f0| 09 09 09 6d 42 4d 3b 0d | 09 09 47 57 6f 72 6c 64 |...mBM;.|..GWorld|
|00001800| 50 74 72 09 09 09 09 6d | 57 6f 72 6c 64 3b 0d 09 |Ptr....m|World;..|
|00001810| 09 0d 09 09 23 69 66 20 | 45 47 5f 57 49 4e 0d 09 |....#if |EG_WIN..|
|00001820| 09 42 49 54 4d 41 50 49 | 4e 46 4f 09 09 09 09 6d |.BITMAPI|NFO....m|
|00001830| 49 6e 66 6f 3b 0d 09 09 | 4c 50 44 49 52 45 43 54 |Info;...|LPDIRECT|
|00001840| 44 52 41 57 53 55 52 46 | 41 43 45 09 09 6d 43 6f |DRAWSURF|ACE..mCo|
|00001850| 6e 74 65 78 74 52 65 66 | 3b 0d 09 09 4c 50 44 49 |ntextRef|;...LPDI|
|00001860| 52 45 43 54 44 52 41 57 | 09 09 09 6d 44 44 4f 62 |RECTDRAW|...mDDOb|
|00001870| 6a 3b 0d 09 09 23 65 6e | 64 69 66 0d 09 09 0d 09 |j;...#en|dif.....|
|00001880| 09 23 69 66 20 45 47 5f | 4d 41 43 0d 09 09 63 68 |.#if EG_|MAC...ch|
|00001890| 61 72 2a 2a 09 09 09 09 | 09 6d 54 65 6d 70 48 6e |ar**....|.mTempHn|
|000018a0| 64 6c 3b 0d 09 09 6c 6f | 6e 67 09 09 09 09 09 6d |dl;...lo|ng.....m|
|000018b0| 48 6e 64 6c 53 69 7a 65 | 3b 0d 09 09 44 53 70 43 |HndlSize|;...DSpC|
|000018c0| 6f 6e 74 65 78 74 52 65 | 66 65 72 65 6e 63 65 09 |ontextRe|ference.|
|000018d0| 09 6d 43 6f 6e 74 65 78 | 74 52 65 66 3b 0d 09 09 |.mContex|tRef;...|
|000018e0| 44 53 70 43 6f 6e 74 65 | 78 74 41 74 74 72 69 62 |DSpConte|xtAttrib|
|000018f0| 75 74 65 73 09 6d 43 6f | 6e 74 65 78 74 3b 0d 09 |utes.mCo|ntext;..|
|00001900| 09 23 65 6e 64 69 66 0d | 09 09 0d 09 09 0d 09 09 |.#endif.|........|
|00001910| 76 6f 69 64 09 09 09 09 | 09 45 72 61 73 65 52 65 |void....|.EraseRe|
|00001920| 63 74 38 20 28 20 63 6f | 6e 73 74 20 52 65 63 74 |ct8 ( co|nst Rect|
|00001930| 2a 20 69 6e 52 65 63 74 | 20 29 3b 0d 09 09 76 6f |* inRect| );...vo|
|00001940| 69 64 09 09 09 09 09 45 | 72 61 73 65 52 65 63 74 |id.....E|raseRect|
|00001950| 31 36 28 20 63 6f 6e 73 | 74 20 52 65 63 74 2a 20 |16( cons|t Rect* |
|00001960| 69 6e 52 65 63 74 20 29 | 3b 0d 09 09 76 6f 69 64 |inRect )|;...void|
|00001970| 09 09 09 09 09 45 72 61 | 73 65 52 65 63 74 33 32 |.....Era|seRect32|
|00001980| 28 20 63 6f 6e 73 74 20 | 52 65 63 74 2a 20 69 6e |( const |Rect* in|
|00001990| 52 65 63 74 20 29 3b 0d | 0d 0d 09 09 73 74 61 74 |Rect );.|....stat|
|000019a0| 69 63 20 76 6f 69 64 09 | 09 09 09 42 6f 78 42 6c |ic void.|...BoxBl|
|000019b0| 75 72 38 20 28 20 63 68 | 61 72 2a 20 69 6e 53 72 |ur8 ( ch|ar* inSr|
|000019c0| 63 65 2c 20 63 68 61 72 | 2a 20 69 6e 44 65 73 74 |ce, char|* inDest|
|000019d0| 2c 20 69 6e 74 20 69 6e | 42 6f 78 57 69 64 74 68 |, int in|BoxWidth|
|000019e0| 2c 20 69 6e 74 20 69 6e | 57 69 64 74 68 2c 20 69 |, int in|Width, i|
|000019f0| 6e 74 20 69 6e 48 65 69 | 67 68 74 2c 20 69 6e 74 |nt inHei|ght, int|
|00001a00| 20 69 6e 53 72 63 65 52 | 6f 77 53 69 7a 65 2c 20 | inSrceR|owSize, |
|00001a10| 69 6e 74 20 69 6e 44 65 | 73 74 52 6f 77 53 69 7a |int inDe|stRowSiz|
|00001a20| 65 2c 20 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |e, unsig|ned long|
|00001a30| 2a 20 74 65 6d 70 2c 20 | 75 6e 73 69 67 6e 65 64 |* temp, |unsigned|
|00001a40| 20 6c 6f 6e 67 20 69 6e | 42 61 63 6b 43 6f 6c 6f | long in|BackColo|
|00001a50| 72 20 29 3b 20 0d 09 09 | 73 74 61 74 69 63 20 76 |r ); ...|static v|
|00001a60| 6f 69 64 09 09 09 09 42 | 6f 78 42 6c 75 72 31 36 |oid....B|oxBlur16|
|00001a70| 28 20 63 68 61 72 2a 20 | 69 6e 53 72 63 65 2c 20 |( char* |inSrce, |
|00001a80| 63 68 61 72 2a 20 69 6e | 44 65 73 74 2c 20 69 6e |char* in|Dest, in|
|00001a90| 74 20 69 6e 42 6f 78 57 | 69 64 74 68 2c 20 69 6e |t inBoxW|idth, in|
|00001aa0| 74 20 69 6e 57 69 64 74 | 68 2c 20 69 6e 74 20 69 |t inWidt|h, int i|
|00001ab0| 6e 48 65 69 67 68 74 2c | 20 69 6e 74 20 69 6e 53 |nHeight,| int inS|
|00001ac0| 72 63 65 52 6f 77 53 69 | 7a 65 2c 20 69 6e 74 20 |rceRowSi|ze, int |
|00001ad0| 69 6e 44 65 73 74 52 6f | 77 53 69 7a 65 2c 20 75 |inDestRo|wSize, u|
|00001ae0| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 2a 20 74 65 |nsigned |long* te|
|00001af0| 6d 70 2c 20 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |mp, unsi|gned lon|
|00001b00| 67 20 69 6e 42 61 63 6b | 43 6f 6c 6f 72 20 29 3b |g inBack|Color );|
|00001b10| 20 0d 09 09 73 74 61 74 | 69 63 20 76 6f 69 64 09 | ...stat|ic void.|
|00001b20| 09 09 09 42 6f 78 42 6c | 75 72 33 32 28 20 63 68 |...BoxBl|ur32( ch|
|00001b30| 61 72 2a 20 69 6e 53 72 | 63 65 2c 20 63 68 61 72 |ar* inSr|ce, char|
|00001b40| 2a 20 69 6e 44 65 73 74 | 2c 20 69 6e 74 20 69 6e |* inDest|, int in|
|00001b50| 42 6f 78 57 69 64 74 68 | 2c 20 69 6e 74 20 69 6e |BoxWidth|, int in|
|00001b60| 57 69 64 74 68 2c 20 69 | 6e 74 20 69 6e 48 65 69 |Width, i|nt inHei|
|00001b70| 67 68 74 2c 20 69 6e 74 | 20 69 6e 53 72 63 65 52 |ght, int| inSrceR|
|00001b80| 6f 77 53 69 7a 65 2c 20 | 69 6e 74 20 69 6e 44 65 |owSize, |int inDe|
|00001b90| 73 74 52 6f 77 53 69 7a | 65 2c 20 75 6e 73 69 67 |stRowSiz|e, unsig|
|00001ba0| 6e 65 64 20 6c 6f 6e 67 | 2a 20 74 65 6d 70 2c 20 |ned long|* temp, |
|00001bb0| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 20 69 6e |unsigned| long in|
|00001bc0| 42 61 63 6b 43 6f 6c 6f | 72 20 29 3b 20 0d 0d 09 |BackColo|r ); ...|
|00001bd0| 09 73 74 61 74 69 63 20 | 76 6f 69 64 09 09 09 09 |.static |void....|
|00001be0| 43 72 6f 73 73 42 6c 75 | 72 38 20 28 20 63 68 61 |CrossBlu|r8 ( cha|
|00001bf0| 72 2a 20 69 6e 53 72 63 | 65 2c 20 69 6e 74 20 69 |r* inSrc|e, int i|
|00001c00| 6e 57 69 64 74 68 2c 20 | 69 6e 74 20 69 6e 48 65 |nWidth, |int inHe|
|00001c10| 69 67 68 74 2c 20 69 6e | 74 20 69 6e 42 79 74 65 |ight, in|t inByte|
|00001c20| 73 50 65 72 52 6f 77 2c | 20 75 6e 73 69 67 6e 65 |sPerRow,| unsigne|
|00001c30| 64 20 63 68 61 72 2a 20 | 69 6e 52 6f 77 42 75 66 |d char* |inRowBuf|
|00001c40| 20 29 3b 0d 09 09 73 74 | 61 74 69 63 20 76 6f 69 | );...st|atic voi|
|00001c50| 64 09 09 09 09 43 72 6f | 73 73 42 6c 75 72 31 36 |d....Cro|ssBlur16|
|00001c60| 28 20 63 68 61 72 2a 20 | 69 6e 53 72 63 65 2c 20 |( char* |inSrce, |
|00001c70| 69 6e 74 20 69 6e 57 69 | 64 74 68 2c 20 69 6e 74 |int inWi|dth, int|
|00001c80| 20 69 6e 48 65 69 67 68 | 74 2c 20 69 6e 74 20 69 | inHeigh|t, int i|
|00001c90| 6e 42 79 74 65 73 50 65 | 72 52 6f 77 2c 20 75 6e |nBytesPe|rRow, un|
|00001ca0| 73 69 67 6e 65 64 20 63 | 68 61 72 2a 20 69 6e 52 |signed c|har* inR|
|00001cb0| 6f 77 42 75 66 20 29 3b | 0d 09 09 73 74 61 74 69 |owBuf );|...stati|
|00001cc0| 63 20 76 6f 69 64 09 09 | 09 09 43 72 6f 73 73 42 |c void..|..CrossB|
|00001cd0| 6c 75 72 33 32 28 20 63 | 68 61 72 2a 20 69 6e 53 |lur32( c|har* inS|
|00001ce0| 72 63 65 2c 20 69 6e 74 | 20 69 6e 57 69 64 74 68 |rce, int| inWidth|
|00001cf0| 2c 20 69 6e 74 20 69 6e | 48 65 69 67 68 74 2c 20 |, int in|Height, |
|00001d00| 69 6e 74 20 69 6e 42 79 | 74 65 73 50 65 72 52 6f |int inBy|tesPerRo|
|00001d10| 77 2c 20 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |w, unsig|ned char|
|00001d20| 2a 20 69 6e 52 6f 77 42 | 75 66 20 29 3b 0d 0d 09 |* inRowB|uf );...|
|00001d30| 09 76 6f 69 64 09 09 09 | 09 09 4c 69 6e 65 38 20 |.void...|..Line8 |
|00001d40| 28 20 69 6e 74 20 73 78 | 2c 20 69 6e 74 20 73 79 |( int sx|, int sy|
|00001d50| 2c 20 69 6e 74 20 65 78 | 2c 20 69 6e 74 20 65 79 |, int ex|, int ey|
|00001d60| 2c 20 6c 6f 6e 67 20 69 | 6e 43 6f 6c 6f 72 20 29 |, long i|nColor )|
|00001d70| 3b 0d 09 09 76 6f 69 64 | 09 09 09 09 09 4c 69 6e |;...void|.....Lin|
|00001d80| 65 31 36 28 20 69 6e 74 | 20 73 78 2c 20 69 6e 74 |e16( int| sx, int|
|00001d90| 20 73 79 2c 20 69 6e 74 | 20 65 78 2c 20 69 6e 74 | sy, int| ex, int|
|00001da0| 20 65 79 2c 20 6c 6f 6e | 67 20 69 6e 43 6f 6c 6f | ey, lon|g inColo|
|00001db0| 72 20 29 3b 0d 09 09 76 | 6f 69 64 09 09 09 09 09 |r );...v|oid.....|
|00001dc0| 4c 69 6e 65 33 32 28 20 | 69 6e 74 20 73 78 2c 20 |Line32( |int sx, |
|00001dd0| 69 6e 74 20 73 79 2c 20 | 69 6e 74 20 65 78 2c 20 |int sy, |int ex, |
|00001de0| 69 6e 74 20 65 79 2c 20 | 6c 6f 6e 67 20 69 6e 43 |int ey, |long inC|
|00001df0| 6f 6c 6f 72 20 29 3b 0d | 0d 0d 09 09 76 6f 69 64 |olor );.|....void|
|00001e00| 09 09 09 09 09 4c 69 6e | 65 38 20 28 20 69 6e 74 |.....Lin|e8 ( int|
|00001e10| 20 73 78 2c 20 69 6e 74 | 20 73 79 2c 20 69 6e 74 | sx, int| sy, int|
|00001e20| 20 65 78 2c 20 69 6e 74 | 20 65 79 2c 20 63 6f 6e | ex, int| ey, con|
|00001e30| 73 74 20 52 47 42 43 6f | 6c 6f 72 26 20 69 6e 53 |st RGBCo|lor& inS|
|00001e40| 2c 20 6c 6f 6e 67 20 64 | 52 2c 20 6c 6f 6e 67 20 |, long d|R, long |
|00001e50| 64 47 2c 20 6c 6f 6e 67 | 20 64 42 20 29 3b 0d 09 |dG, long| dB );..|
|00001e60| 09 76 6f 69 64 09 09 09 | 09 09 4c 69 6e 65 31 36 |.void...|..Line16|
|00001e70| 28 20 69 6e 74 20 73 78 | 2c 20 69 6e 74 20 73 79 |( int sx|, int sy|
|00001e80| 2c 20 69 6e 74 20 65 78 | 2c 20 69 6e 74 20 65 79 |, int ex|, int ey|
|00001e90| 2c 20 63 6f 6e 73 74 20 | 52 47 42 43 6f 6c 6f 72 |, const |RGBColor|
|00001ea0| 26 20 69 6e 53 2c 20 6c | 6f 6e 67 20 64 52 2c 20 |& inS, l|ong dR, |
|00001eb0| 6c 6f 6e 67 20 64 47 2c | 20 6c 6f 6e 67 20 64 42 |long dG,| long dB|
|00001ec0| 20 29 3b 0d 09 09 76 6f | 69 64 09 09 09 09 09 4c | );...vo|id.....L|
|00001ed0| 69 6e 65 33 32 28 20 69 | 6e 74 20 73 78 2c 20 69 |ine32( i|nt sx, i|
|00001ee0| 6e 74 20 73 79 2c 20 69 | 6e 74 20 65 78 2c 20 69 |nt sy, i|nt ex, i|
|00001ef0| 6e 74 20 65 79 2c 20 63 | 6f 6e 73 74 20 52 47 42 |nt ey, c|onst RGB|
|00001f00| 43 6f 6c 6f 72 26 20 69 | 6e 53 2c 20 6c 6f 6e 67 |Color& i|nS, long|
|00001f10| 20 64 52 2c 20 6c 6f 6e | 67 20 64 47 2c 20 6c 6f | dR, lon|g dG, lo|
|00001f20| 6e 67 20 64 42 20 29 3b | 0d 0d 0d 09 09 2f 2f 73 |ng dB );|.....//s|
|00001f30| 74 61 74 69 63 20 76 6f | 69 64 09 09 09 09 6d 6f |tatic vo|id....mo|
|00001f40| 76 65 50 74 28 20 69 6e | 74 26 20 69 6f 58 2c 20 |vePt( in|t& ioX, |
|00001f50| 69 6e 74 26 20 69 6f 59 | 2c 20 69 6e 74 20 69 6e |int& ioY|, int in|
|00001f60| 44 78 2c 20 69 6e 74 20 | 69 6e 44 79 2c 20 69 6e |Dx, int |inDy, in|
|00001f70| 74 20 69 6e 44 69 73 74 | 20 29 3b 0d 0d 7d 3b 00 |t inDist| );..};.|
|00001f80| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001f90| 48 c0 06 00 00 dd 2f 6f | 83 14 01 00 00 00 00 81 |H...../o|........|
|00001fa0| 3b 00 00 00 15 85 99 c0 | 06 00 00 dd 78 80 ad 84 |;.......|....x...|
|00001fb0| 9e 01 00 00 00 00 81 3c | 00 00 00 16 84 54 c0 06 |.......<|.....T..|
|00001fc0| 00 00 dd 80 dc 81 3c 8a | 86 01 00 00 00 00 81 3d |......<.|.......=|
|00001fd0| 00 00 00 16 87 d6 c0 06 | 00 00 dd 80 b1 80 d8 87 |........|........|
|00001fe0| 18 01 00 00 00 00 81 3e | 00 00 00 16 80 d8 c0 06 |.......>|........|
|00001ff0| 00 00 dd 81 42 86 6b 89 | 17 01 00 00 00 00 81 3f |....B.k.|.......?|
|00002000| 00 00 00 15 88 4a c0 06 | 00 00 07 31 80 c2 85 2d |.....J..|...1...-|
|00002010| 01 00 00 00 00 81 40 00 | 00 00 16 85 85 c0 06 00 |......@.|........|
|00002020| 00 07 80 cd 81 9c 83 e1 | 01 00 00 00 00 81 41 00 |........|......A.|
|00002030| 00 00 16 87 e9 c0 06 00 | 00 07 81 a2 82 1b 81 bb |........|........|
|00002040| 01 00 00 00 00 81 42 00 | 00 00 16 81 ac c0 06 00 |......B.|........|
|00002050| 00 07 82 21 83 ad 85 6e | 01 00 00 00 00 81 43 00 |...!...n|......C.|
|00002060| 00 00 16 82 52 c0 06 00 | 00 07 83 b1 85 06 81 f2 |....R...|........|
|00002070| 01 00 00 00 00 81 44 00 | 00 00 0e 86 4d 00 8a 10 |......D.|....M...|
|00002080| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00002090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020a0| 00 00 00 00 00 00 00 03 | 00 04 00 51 00 12 02 44 |........|...Q...D|
|000020b0| 02 89 00 51 00 12 02 44 | 02 89 b3 d2 3d 08 00 00 |...Q...D|....=...|
|000020c0| 00 75 00 00 00 80 00 00 | 09 49 01 00 00 00 00 04 |.u......|.I......|
|000020d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000020e0| 00 00 00 46 05 6b b3 70 | 12 5e 00 00 00 1c 00 46 |...F.k.p|.^.....F|
|000020f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00002100| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00002110| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+