Author Topic: Dingux SDL Problems?  (Read 1609 times)

Kojote (OP)

  • *
  • Posts: 36
    • PDRoms - Homebrew for you!
Dingux SDL Problems?
« on: November 19, 2009, 03:17:13 am »
We, the Giana's Return Team, currently try to port our game "Giana's Return" to Dingux. Sadly it seems there is a problem, which makes the port impossible for now.

There is a "segment fault" which appears at given areas and we have tracked down the issue to one main problem.

Let me give you a short view into the correspondence between Slaanesh and Thor, as our Dingux main brain Ignacio probably did not recieve my e-mail.

Quote:
Quote
> what is the SDL version on dingux? (I can check if some bugs have been fixed on new versions)
> does it use hw blitting ? can you do the same with SDL_LowerBlit (copy/paste/log)?
> does the sdl dingux use specific code (hw acceleration...)?
> I've seen some bugs around this code on different platforms...
>
>
> > Message du 17/11/09 ? 12h12
> > De : slaanesh
> > Objet : Re: giana update
> >
> > I took your first suggestion.
> >
> > I created a new file SDL_surface.cpp
> >
> > I copied the SDL SDL_ConvertSurface code into this file. I renamed the function to SDL_ConvertSurfaceX().
> >
> > Calling the function, it dies in this code (of course). The first LOGGER output is present but not the second, so there fore segment faulting in SDL_LowerBlit.
> > This copies one surface to another
> >
> > /* Copy over the image data */
> > LOGGER("Copy image data\n");
> > bounds.x = 0;
> > bounds.y = 0;
> > bounds.w = surface->w;
> > bounds.h = surface->h;
> > SDL_LowerBlit(surface, &bounds, convert, &bounds);
> >
> > /* Clean up the original surface, and update converted surface */
> > LOGGER("Clean up\n");
> >
> > My guess is that somehow the images that it's copying to and from are not equal?

The big question, do we have any clever minds in here who could probably confirm that the fault is located within the SDL libs?

Regards
Kojote

PS: The sooner we find a solution, the sooner you guys can play Giana's Return on Dingux :) v0.997 is almost on the way out and that's of course the version you guys would be able to enjoy.
« Last Edit: November 19, 2009, 03:18:54 am by Kojote »
CEO & Editor @ pdroms.de
Editor @ retromagazine.eu
Project Manager @ retroguru.com

rookie1

  • Guest
Re: Dingux SDL Problems?
« Reply #1 on: November 20, 2009, 03:25:29 am »
Not sure I understand your problem. Are you saying you get segfault when calling SDL_BlitSurface()? dmenu does use SDL_BlitSurface() a lot. And I haven't encountered any segfault in this function. Can you post the full source of the function?

 

Post a new topic
Post a new topic