[fpc-devel] graphh.inc - few questions.
Evgeniy Ivanov
lolkaantimat at gmail.com
Sat Jul 14 16:01:43 CEST 2007
Hi!
I'm doing sdlgraph - so I put my self to packages/base/graph.
I can't understand the method (where are they used?) using routines in
TModeInfo (from graphh.inc).
In custom graph modules it's used in such way:
mode.PutPixel:={$ifdef fpc}@{$endif}PutPixVESA32kOr64k;
But in windows and go32v2 there are no any routines for PutPixel from
interface.
I mean someting like
PutPixel := @custom_PutPixel; (PutPixel :=
@libvga_PutPixelProc; - in the unix graph.pp).
So, if there are no such assignations (sorry, I don't know the right word)
PutPixelDefault from graph.inc will be used...
And it is:
procedure PutPixelDefault(X,Y: smallint; Color: Word);
begin
Writeln(stderr,'Error: Not in graphics mode (use InitGraph and test
GraphResult afterwards)');
Halt(1);
end;
But windows module works...
I will thankful for answers.
I may rewrite somethings, but as I have undersood - the best way is to use
graph.inc and graphh.inc.
--
E.I.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070714/e49342e0/attachment.html>
More information about the fpc-devel
mailing list