Recent

Author Topic: Drawing on TPanel using SDL1.2  (Read 1298 times)

emailadd

  • Newbie
  • Posts: 3
Drawing on TPanel using SDL1.2
« on: August 28, 2018, 05:28:05 pm »
 I want to draw on TPanel using SDL (v1.2) library. In order to have SDL to draw on the component, I need to pass the X11 window ID using 'SDL_WINDOWID' environment.

fWindow := GDK_WINDOW_XWINDOW(PGtkWidget(PtrUInt(Panel1.Handle))^.window);

Using the function above, I was able to get the X window ID and passed into SDL. However, it draws not on the TPnale, but on the form.
Any suggestions to fix this?

I am using Lazarus v1.0.10 under Ubuntu 14.04-LTM

Regards,
« Last Edit: August 29, 2018, 01:02:31 am by emailadd »