Hi!<br>I'm doing sdlgraph - so I put my self to packages/base/graph.<br><br>I can't understand the method (where are they used?) using routines in TModeInfo (from graphh.inc).<br>In custom graph modules it's used in such way:
<br> mode.PutPixel:={$ifdef fpc}@{$endif}PutPixVESA32kOr64k;<br>But in windows and go32v2 there are no any routines for PutPixel from interface.<br>I mean someting like <br>PutPixel := @custom_PutPixel; (PutPixel := @libvga_PutPixelProc; - in the unix
graph.pp).<br><br>So, if there are no such assignations (sorry, I don't know the right word) PutPixelDefault from graph.inc will be used...<br>And it is:<br> procedure PutPixelDefault(X,Y: smallint; Color: Word);<br>
begin<br> Writeln(stderr,'Error: Not in graphics mode (use InitGraph and test GraphResult afterwards)');<br> Halt(1);<br> end;<br><br>But windows module works...<br><br>I will thankful for answers.<br>
<br>I may rewrite somethings, but as I have undersood - the best way is to use graph.inc and graphh.inc.<br clear="all"><br>-- <br>E.I.