Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-09

Writing a screensaver with fpc for Kubuntu ( sorry, forgot the attechment )

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

I wanted to develop an XScreenSaver with FPC.

My first idea was to write a GTK+ app, but according to the XScreenSaver specs you have to paint directly on the X root window. So I translated some of the example C-code to Pascal, but the resulting application did not work.

In the Attachment you can see it under "Console"

In the directory "NoOpenGL" is the version i programmed already.

If i press the preview button in the "System-settings"->"Desktop"->"Screen Saver" menu of the KDE SystemSettings module, my version runs as it should. But if the programm is startet through the system (if it was idle) the screen is just black. What does my current solution do wrong? Has someone experience with doing this kind of stuff?

I am using a Kubuntu 10.04 -32 Bit with FPC 2.4.0 and a GForce 8400M grahic adapters, for more informations feel free to ask.

sincerely

Corpsman

Attechment :

File can be Downloaded under : www.corpsman.de/FPC_List.zip

Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie aktualisiert und erweitert. Da ist für jeden was dabei. ___________________________________________________________ WEB.DE DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 €/mtl.!* http://produkte.web.de/go/DSL_Doppel_Flatrate/2