ich habe ein kleines Grafikprogram erstellt.
Der Grafikteil selber funktioniert einwandfrei und ist nur ein Beispiel.
Wenn ich aber anschließend wieder in den Textmodus
zurückkehren will (hinter "Closegraph") funktioniert es nicht.
Anbei das kurze Programm:
Code: Alles auswählen
Program Grafik;
Uses crt,graph;
VAR graphmode,graphdriver : SmallInt;
VAR x : Real;
Begin
clrscr;
Writeln ('test');
readkey;
graphdriver := detect;
initgraph (graphdriver, graphmode,' ');
Cleardevice;
SetBkColor(1);
Setcolor(14);
Putpixel(60,40,4);
Line(20,63,325,360);
Rectangle(50,70,70,80);
Delay(1000);
Cleardevice;
CloseGraph;
Restorecrtmode;
Clrscr;
Read(x);
Writeln(x);
Delay(3000);
end.
Schönen Sonntagabend noch
Werner