Commit Graph

58 Commits

Author SHA1 Message Date
Jonas Maebe
4cb3f54367 * writemode was not set to normalput during clearviewport (and it uses hline) 2000-03-08 14:20:14 +00:00
peter
66ea55dd7c * removed warnings/notes 2000-02-27 14:40:40 +00:00
sg
4e5b164c36 * For Linux, "/" is added to the bgipath instead of "\" if this character
isn't already there.
2000-02-06 01:47:15 +00:00
daniel
ec29a31834 * copyright 2000 2000-01-07 16:41:28 +00:00
daniel
a79b4a404b * copyright 2000 added 2000-01-07 16:32:21 +00:00
Jonas Maebe
39343bf688 * removed/commented out (inited but) unused vars and unused types 2000-01-02 19:02:39 +00:00
Jonas Maebe
c2020897fd + by default, also attempt to install the fonts that come with TP7 1999-12-29 17:26:00 +00:00
Jonas Maebe
39d5e1c70a * XAspect and YAspect are now words instead of smallints, they
overflowed for resolutions > 640x480 otherwise
  * the number of pixels required for an ellipse in internalellipsedef
    is now calculated after the aspectratios have been taken into
    account
1999-12-26 10:33:06 +00:00
Jonas Maebe
802730bfb5 * changed vesa.inc do it doesn't try to use linear modes anymore (doesn't work
yet!!)
  * fixed mode detection so the low modenumber of a driver doesn't have to be zero
    anymore (so VESA autodetection now works)
1999-12-21 17:42:17 +00:00
pierre
4bfe8086c4 + CloseGraph if errors 1999-12-21 09:16:48 +00:00
peter
62bd7e53ee * integer -> smallint to overcome -S2 switch needed for ggi version 1999-12-20 11:22:35 +00:00
Jonas Maebe
91fca2d81f * putimage now performs the lipping itself and uses directputpixel
(note: this REQUIRES or/and/notput support in directputpixel,
    this is not yet the case in the assembler versions!)
  * YOffset addition moved in hlinevesa256 and vlinevesa256
    because it uses still putpixel afterwards
1999-12-12 13:34:19 +00:00
Jonas Maebe
4ebd215a8c * changed definition of getscanlineproc to "getscanline(x1,x2,y:
integer; var data);" so it can be used by getimage too
  * changed getimage so it uses getscanline
  * changed floodfill, getscanline16 and definitions in Linux
    include files so they use this new format
  + getscanlineVESA256 for 256 color VESA modes (banked)
1999-12-11 23:41:38 +00:00
pierre
54874916af * SetBkColor like BP by changing Palette entry zero 1999-12-10 12:47:41 +00:00
michael
1eb4bfc435 + Removed charmessagehandler declaration, it is in graphh.inc 1999-11-30 08:57:46 +00:00
Jonas Maebe
db5cdd7387 * corrected misplacement of call to initvars in initgraph
+ some extra debugging commands (for -dlogging) in the mode functions
1999-11-28 16:13:55 +00:00
Jonas Maebe
6ad29d29a6 * _GraphResult is now properly set to grOK by DetectGraph and
InitGraph if there are no errors
1999-11-28 12:19:59 +00:00
Jonas Maebe
acabc4c7fa * fixed VlineVESA256 and re-enabled it in graph.inc
* added procedure detectgraph to interface of graph unit
1999-11-27 21:48:00 +00:00
pierre
926f82efc1 * memory corruption within GetImage removed 1999-11-25 17:44:14 +00:00
pierre
2719fb91e8 * PutImage used an integer index that became negative !!!!
* Default needed procedure now genrate a RTE 218 instead of a
    GPF by call to nil pointer !
1999-11-24 23:42:31 +00:00
florian
3839c77a58 * the size was calculated wrong by imagesize 1999-11-11 17:55:07 +00:00
florian
2c4cddd82d * better looking font 1999-11-11 14:07:14 +00:00
peter
79d331a978 * fpcmake support 1999-11-08 15:01:38 +00:00
peter
6dac8462c5 * move graph.inc to the target dir 1999-11-08 11:15:21 +00:00
florian
707675a501 + first release of win32 gui support 1999-11-03 20:23:01 +00:00
Jonas Maebe
d6cb636d80 * fixed clipping for thickwidth lines (bug 659)
* fixed the faster internalellipsedefault, but it doesn't plot
    all pixels (there are gaps in the ellipses)
1999-10-17 10:20:13 +00:00
Jonas Maebe
85f0d28bf1 * fix for disposing font data because it can contain #0 chars 1999-09-28 15:07:46 +00:00
Jonas Maebe
03980540bd * reordered some local variables (first 4 byte vars, then 2 byte vars
etc)
  * font data is now disposed in exitproc, exitproc is now called
    GraphExitProc (was CleanModes) and resides in graph.pp instead of in
    modes.inc
1999-09-28 13:56:25 +00:00
peter
85c3b9ff3b * new graph unit is default for go32v2
* removed warnings/notes
1999-09-27 23:34:40 +00:00
Jonas Maebe
aa5751acbc * changed name of modeinfo variable to vesamodeinfo and fixed
associated errors (fillchar(modeinfo,sizeof(tmodeinfo),#0) instead
    of sizeof(TVesamodeinfo) etc)
  * changed several sizeof(type) to sizeof(varname) to avoid similar
    errors in the future
1999-09-26 13:31:06 +00:00
Jonas Maebe
bd4d132c5b + detectgraph
* small change to internalellipsedefault so less pixels are
    calculated twice
  * some small corrections to graph.tex
1999-09-25 11:48:43 +00:00
Jonas Maebe
5f0cf70477 * optimized patternline a bit (always use hline when possible)
* isgraphmode stuff cleanup
  * vesainfo.modelist now gets disposed in cleanmode instead of in
    closegraph (required moving of some declarations from vesa.inc to
    new vesah.inc)
  * queryadapter gets no longer called from initgraph (is called from
    initialization of graph unit)
  * bugfix for notput in 32k and 64k vesa modes
  * a div replaced by / in fillpoly
1999-09-24 22:52:38 +00:00
Jonas Maebe
47b14faf20 * renamed text.inc -> gtext.inc to avoid conflict with system unit
* fixed textwidth
  * isgraphmode now gets properly updated, so mode restoring works
    again
1999-09-22 13:13:34 +00:00
Jonas Maebe
4e43bad546 + hlinevesa256 and vlinevesa256
+ support for not/xor/or/andput in vesamodes with 32k/64k colors
  * lots of changes to avoid warnings under FPC
1999-09-18 22:21:09 +00:00
Jonas Maebe
34f074549c * graph.pp: removed pieslice and sector from ToDo list
* closegraph: exits now immidiately if isgraphmode = false (caused
    RTE 204 with VESA enabled if you set exitproc to call closegraph
    and also called closegraph explicitely before exit, like bgidemo)
1999-09-18 16:03:36 +00:00
Jonas Maebe
e188d82aec * another fix for a case where internalellipsedefault went haywire
* sector() and pieslice() fully implemented!
* small change to prevent buffer overflow with floodfill
1999-09-17 13:58:31 +00:00
Jonas Maebe
6ea818a303 * small change to internalellipsedef to be TP compatible
* fixed directputpixel for vga 320*200*256
1999-09-15 13:37:50 +00:00
Jonas Maebe
66e28ab9c1 * fixed Arc: internallellipse went into an endless loop if StAngle =
EndAngle
  * FillEllipse is now much faster: no more floodfill,
    InternalEllipseDefault now draws the patternlines immediatety!
1999-09-13 12:49:08 +00:00
Jonas Maebe
062f4e5991 * several changes to internalellipse to make it faster
and to make sure it updates the ArcCall correctly
    (not yet done for width = 3)
  * Arc mostly works now, only sometimes an endless loop, don't know
    why
1999-09-12 17:28:59 +00:00
Jonas Maebe
cb55fd4de2 * FloodFill: did not take into account current viewport settings
* GetScanLine: only get line inside viewport, data outside of it
    is not used anyway
  * InternalEllipseDefault: fix for when xradius or yradius = 0 and
    increase xradius and yradius always by one (TP does this too)
  * fixed conlict in vesa.inc from last update
  * some conditionals to avoid range check and overflow errors in
    places where it doesn't matter
1999-09-11 19:43:00 +00:00
florian
49f7b705a6 * bar: y2 can be less y1, fixed
* settextstyle: charsize can be 0, must be changed into 1
1999-07-26 09:38:41 +00:00
Jonas Maebe
c023f717f1 + xor-, and and- orput support for VESA256 modes
* compile with -dlogging if you wnt some info to be logged to grlog.txt
1999-07-18 15:07:19 +00:00
florian
ddf0f0389b * cosmetic changes 1999-07-14 18:18:02 +00:00
florian
0014fa54a3 * HLine16 and VLine16 implemented 1999-07-14 18:16:23 +00:00
Jonas Maebe
d045295cd4 + added Log and Id tags
* added first FPC support, only VGA works to some extend for now
  * use -dasmgraph to use assembler routines, otherwise Pascal
    equivalents are used
  * use -dsupportVESA to support VESA (crashes under FPC for now)
  * only dispose vesainfo at closegrph if a vesa card was detected
  * changed int32 to longint (int32 is not declared under FPC)
  * changed the declaration of almost every procedure in graph.inc to
    "far;" becquse otherwise you can't assign them to procvars under TP
    real mode (but unexplainable "data segnment too large" errors prevent
    it from working under real mode anyway)
1999-07-12 13:27:06 +00:00
carl
2b0159828c + Added support for hardware paging
* Bugfix of palrec under FPC
1999-06-26 02:32:30 +00:00
carl
b0bdd46ee1 * Bugfixes for RegisterBGIFont which can be called BEFORE
InitGraph.
1999-05-30 23:07:59 +00:00
carl
3ff2cdf4a9 + Added some color constants
+ Added DirectColor support
1999-05-24 13:44:59 +00:00
carl
66da57e934 * EGAxxxx color constants
+ SetRGBPalette, GetRGBPalette
1999-05-22 17:13:46 +00:00
florian
e905aeea04 * most of the Object Pascal stuff moved to the system unit 1999-05-17 21:52:33 +00:00