Re: [Gambas-user] how copy the screen to memory on a sdl project

2014-07-19 Thread Jack
Le 19/07/2014 21:03, Benoît Minisini a écrit : > Le 18/07/2014 08:32, Jack a écrit : >> Hello ! >> >> screen.copy (x, y, w, h) does not exist, then in a sdl project, how to >> make a copy of part of the screen. >> > > In revision #6389, I added a Window.Screenshot() method that returns the > conten

Re: [Gambas-user] How to find the source of evil?

2014-07-19 Thread Wolfgang, dl7nb
Am 19.07.2014 21:04, schrieb Benoît Minisini: > Le 19/07/2014 16:04, Wolfgang, dl7nb a écrit : >> Hello! >> All works well but I get an error saying: >> >> (MyProgram140708:8024): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: >> assertion `g_utf8_validate (text, len, NULL)' failed >> >> I think th

Re: [Gambas-user] How to find the source of evil?

2014-07-19 Thread Benoît Minisini
Le 19/07/2014 16:04, Wolfgang, dl7nb a écrit : > Hello! > All works well but I get an error saying: > > (MyProgram140708:8024): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: > assertion `g_utf8_validate (text, len, NULL)' failed > > I think that "140708:8024" is the place from where the faulty cal

Re: [Gambas-user] how copy the screen to memory on a sdl project

2014-07-19 Thread Benoît Minisini
Le 18/07/2014 08:32, Jack a écrit : > Hello ! > > screen.copy (x, y, w, h) does not exist, then in a sdl project, how to > make a copy of part of the screen. > In revision #6389, I added a Window.Screenshot() method that returns the contents of the SDL window as an Image object. I will add optio

[Gambas-user] How to find the source of evil?

2014-07-19 Thread Wolfgang, dl7nb
Hello! All works well but I get an error saying: (MyProgram140708:8024): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed I think that "140708:8024" is the place from where the faulty call is done. But how can I find this/this line in my source

Re: [Gambas-user] how copy the screen to memory on a sdl project

2014-07-19 Thread Tobias Boege
On Sat, 19 Jul 2014, Jack wrote: > Le 18/07/2014 15:09, Tobias Boege a ?crit : > > By "screen" you mean the whole desktop, not just your SDL window, right? > > Excuse me Tobi. I was not very clear. Screen for me is only sdl window. > it's the working screen defined by the Gambas program. > OK.