Re: [SailfishDevel] SDL2 without OpenGL, nothing but a black screen

2014-06-04 Thread kim
Have you tried running the project on the phone with the debugger, or from a 
command line ?

I have found that this behaviour normally stems from something missing, and 
that will be displayed in the debugger or on the commandline.

/Kim

> Ahoy,
> 
> I was coding something simple with 2D-only graphics using SDL2, and 
> noticed that drawing graphics that does work in the emulator, does not 
> work on the actual phone.
> 
> To demonstrate that, I copied the example code from 
> , added a Makefile and 
> hello.bmp, and placed those onto GitHub: 
> .
> 
> As also described in README.md, the sample runs fine in the emulator, 
> but fails to show anything but a black screen on the actual phone. 
> Additionally, if the |SDL_RENDERER_SOFTWARE ||flag is used instead of 
> SDL_RENDERER_ACCELERATED, the sample still runs on the emulator, but 
> causes a segmentation fault on the phone.
> 
> The phone is running 1.0.5.19.
> 
> Am I doing something wrong? (Can't imagine what that would be.)
> 
> 
> Best Regards,
> Lauri Nurmi
> 
> |
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


[SailfishDevel] SDL2 without OpenGL, nothing but a black screen

2014-06-03 Thread Lauri Nurmi

Ahoy,

I was coding something simple with 2D-only graphics using SDL2, and 
noticed that drawing graphics that does work in the emulator, does not 
work on the actual phone.


To demonstrate that, I copied the example code from 
, added a Makefile and 
hello.bmp, and placed those onto GitHub: 
.


As also described in README.md, the sample runs fine in the emulator, 
but fails to show anything but a black screen on the actual phone. 
Additionally, if the |SDL_RENDERER_SOFTWARE ||flag is used instead of 
SDL_RENDERER_ACCELERATED, the sample still runs on the emulator, but 
causes a segmentation fault on the phone.


The phone is running 1.0.5.19.

Am I doing something wrong? (Can't imagine what that would be.)


Best Regards,
Lauri Nurmi

|
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org