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,