CWC | 1 Apr 03:03 2008
Picon

Re: Problems blitting pngs with sdl_image

Todd wrote:
> That fixed it, thanks. 
> 
> But it also brings up another question. For some reason none of the DLL's I
> throw into System32 are found by Visual Studio Express and I have to put 
> them into the debug folder to run anything. Is there a way to change that?
> 
Sorry, don't know anything about VSE, I'm a Borland guy.

Good Luck
CWC
Ken Rogoway | 1 Apr 08:42 2008

Re: Problems blitting pngs with sdl_image


With newer versions of Visual Studio MS decided that they best way to deal
with DLL hell is to use manifests that specify what (and where) the DLL's
will be located.  You can find a great article on the subject and how to
determine what needs to be installed here:

http://www.itwriting.com/blog/?postid=261

Note, if you are distributing the release version of an app you can use the
MS provided redist files.  However, if you are debugging (for instance on a
remote system) you will need the appropriate debug DLL's.  Here is a great
article that deals with all of these issues:

http://qualapps.blogspot.com/2007/03/making-vc2005-remote-debugging-work.htm
l

Hope that helps.

Ken Rogoway
Homebrew Software
http://www.homebrewsoftware.com/

-----Original Message-----
From: sdl-bounces <at> lists.libsdl.org [mailto:sdl-bounces <at> lists.libsdl.org] On
Behalf Of CWC
Sent: Monday, March 31, 2008 8:04 PM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] Problems blitting pngs with sdl_image

Todd wrote:
(Continue reading)

Joe Forte | 1 Apr 21:18 2008
Picon

Re: Problems blitting pngs with sdl_image

Sounds like a path related problem.  Make sure that the PATH environment variable points to the system32 directory.  You can check this by entering 'path' (without the quotes) at a command prompt.  You can change the PATH variable by right-clicking on My Computer and selecting 'properties'.  From there choose the 'Advanced' tab and finally click the 'Environment Variables' button.  The PATH variable that you want is located in the 'System Variables' section.  After you update the PATH variable you may have to restart VS for the changes to take effect.

- Joe Forte

On Mon, Mar 31, 2008 at 1:01 AM, Todd <toddlewis <at> gmail.com> wrote:

That fixed it, thanks.

But it also brings up another question. For some reason none of the DLL's I
throw into System32 are found by Visual Studio Express and I have to put
them into the debug folder to run anything. Is there a way to change that?

Thanks again for the help,
Todd



_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Stephen Anthony | 1 Apr 23:05 2008
Picon

Re: App icon sometimes not appearing on window titlebar

On March 30, 2008 3:56:06 pm Ronald Lamprecht wrote:

> Stephen Anthony wrote:
> > On March 30, 2008 3:10:17 pm Ken Rogoway wrote:
> >> I ran into something similar.  You need to make sure you call
> >> SDL_WM_SetIcon() before you call SDL_SetVideoMode().
> >
> > But would that cause it to work sometimes, and not other times? 
> > Also, is there any harm in calling the method more than once per
> > application invocation (basically, if you destroy and recreate the
> > window, it is OK to call the function again)?
>
> I did run into the same problems on the "Enigma" project
> (http://www.nongnu.org/enigma). Every OS had need of another SDL
> handling and even the different Windows versions did prove to be
> incompatible (XP is an exception, 95,98, 2000, Vista are the same)

OK, thanks for the code.  I just looked at it, and it seems the only 
difference is that you call SDL_WM_SetIcon() at different times; 
sometimes before SDL_SetVideoMode() and sometimes after.

However, I just noticed something else; the way I do it (icon before 
video mode) only causes a problem when using the normal XP theme.  When 
I use the old Win98/2000 theme, the icon works fine!

Does anyone know what could be causing this?
Steve
Indrani Kundu Saha | 2 Apr 00:05 2008
Picon

GSOC 2008

Hi,

   I would like to apply for GSOC 2008 and I am interested in the
 following two projects (quoted directly from the webpage)

  Audio Ideas: ReSampling and Pitch Shifting

 Questions:
 (i) I am not sure where to post as a quick search did not reveal any
 GSoC mails. I have already subscribed to the development list.

 (ii) I have not used the SDL libraries but have have used it to
 compile ffplay of ffmpeg.

 (iii) I am familiar with video decoders (x264), Linux device drivers
 (e1000 in particular), signal processing algorithms. I would like to
 foray into audio algos and the project on audio resampling attracts me
 at this stage.

 (iv) Is there a IRC channel on Freenode that I can hover around?

 Thanks for any help in advance,

 PS: My exams just got over and the deadline got extended. Hence the
 revival in interest to participate in GSoC.
Torsten Giebl | 2 Apr 02:36 2008

Re: GSOC 2008

Hello !

>  (iv) Is there a IRC channel on Freenode that I can hover around?

Yup it is #SDL on Freenode.

CU
Moon | 1 Apr 18:54 2008
Picon

Trust Gamer Mouse vs D1X-Rebirth. Can't use buttons <- SDL problem?

I'm trying to get my Trust Gamer Mouse Optical GM-4200

http://www.trust.com/products/product_detail.aspx?item=14463

to work in D1X-Rebirth 

http://dxx-rebirth.de/?Downloads:D1X-Rebirth

under Win XP SP2 which uses SDL but no matter what function I do assign in the
Windows Mouse Configuration menu, I cannot get the thumb buttons to work at all
in D1X-Rebirth. Any suggestions? TIA!
krzysztof posłuszny | 2 Apr 19:49 2008
Picon

How differently?

HI! I ask to write me how it it was been possible to write following 
functions so in order to she made the same differently but without use 
SDL_Flip(80). I'm sorry behind my English.

int kolysanie_statkami()
{
       ball[0]=IMG_Load("czaszka.bmp");
       ball[1]=IMG_Load("czaszka.bmp");

        while(pl==false)
        {
       for(int i=0;i<=50;++i)

        {
            apply_surface(++i, 40, ball[0], screen );
            apply_surface(++i+80, 40, ball[1], screen );
            //Szybkosc kołysania
            SDL_Delay(80);
            SDL_Flip(screen);
        }
         for(int j=50;j>=0;--j)

        {
           apply_surface(--j, 40, ball[0], screen );
           apply_surface(--j+80,40, ball[1], screen );
           //Szybkosc kołysania
            SDL_Delay(80);
           SDL_Flip(screen);
        }

     }
}
Picon

Re: Image of 8bpp in a surface of 8bpp

How can i get the correct palette from a JPG image??

David Olsen wrote:
Does the distortion just consist of unmatched colors? This would indicate that you have not set the correct palette for your 8-bit screen surface. That's why it would work in 16-bit mode - no palette info is needed. I would guess that your jpg is not a palettized image anyway, as most aren't, so you'll probably want to reduce its color palette to 256 colors anyway, to display it on an 8-bit screen. If you actually are starting with an 8-bit image, then you just need to load the appropriate palette. -Dave ----- Original Message ----- From: "Fausto Carvalho Marques SIlva" <fausto <at> tse.gov.br> To: <sdl <at> lists.libsdl.org> Sent: Thursday, March 27, 2008 12:21 PM Subject: [SDL] Image of 8bpp in a surface of 8bpp
I'm having problem with an image loaded with SDL_image and displayed in a 640x480x8 screen. This image is a jpg and when displayed in 640x480x8 it gets distorced, but with 640x480x16 it does not get distorced. But in my mind if the image is 8bpp and is going to be displayed in a screen of 8bpp that no big deal.Anyone can help me?? Thanks... -- Fausto Carvalho _______________________________________________ SDL mailing list SDL <at> lists.libsdl.org http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_______________________________________________ SDL mailing list SDL <at> lists.libsdl.org http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-- Fausto Carvalho 3316-3808 TSE/STI/CSELE/SEVIN
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Evan Balster | 2 Apr 21:24 2008
Picon

How Differently?

Hey. Looking at your code you want to make a moving ball, but the old images pollute the screen.

A simple solution is to clear the screen with SDL_FillRect(screen,&screen->clip_rect,0x00000000); each loop.

If you want trailing "motion" images of the ball that don't jump back and forth, make a "virtual screen",
blit the ball sprite to that and blit it to the screen each loop.

And if you mean drawing this without refreshing the screen just delete the SDL_Delay and SDL_Flip lines.


int kolysanie_statkami()
{
ball[0]=IMG_Load("czaszka.bmp");
ball[1]=IMG_Load("czaszka.bmp");


while(pl==false)
{
for(int i=0;i<=50;++i)

{
apply_surface(++i, 40, ball[0], screen );
apply_surface(++i+80, 40, ball[1], screen );
//Szybkosc kołysania
SDL_Delay(80);
SDL_Flip(screen);
}
for(int j=50;j>=0;--j)

{
apply_surface(--j, 40, ball[0], screen );
apply_surface(--j+80,40, ball[1], screen );
//Szybkosc kołysania
SDL_Delay(80);
SDL_Flip(screen);
}

}
}

_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Gmane