[SDL2]-Transparency Fails After Window Resize?

[SDL2]-Transparency Fails After Window Resize?

Hi,

My team and I are developing a new 2d video game engine based on SDL 2.

We have found a problem:
On Windows 8 when the SDL 2 window is resized, texture alpha transparency fails?
(on window resize, alpha transparency is constantly fully opaque)

Anyone know why this occurs and know of a solution?
Thanks!

If you want to look at the source code or run the Windows binary then download from below URL:
http://16bitsoft.com/V2/Files/SDL2/TC4/Alpha/SDL2-TC4_Alpha1.zip------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

I think I have a fix for this.

Can you try the attached patch?On Sat, Aug 17, 2013 at 2:53 AM, JeZ-l-Lee < JessePalserMailingLists at gmail.com> wrote:

**
[SDL2]-Transparency Fails After Window Resize?

Hi,

My team and I are developing a new 2d video game engine based on SDL 2.

We have found a problem:
On Windows 8 when the SDL 2 window is resized, texture alpha transparency
fails?
(on window resize, alpha transparency is constantly fully opaque)

Anyone know why this occurs and know of a solution?
Thanks!

If you want to look at the source code or run the Windows binary then
download from below URL:
http://16bitsoft.com/V2/Files/SDL2/TC4/Alpha/SDL2-TC4_Alpha1.zip


JeZ+Lee
JessePalser Gmail com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com


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

-------------- next part --------------
A non-text attachment was scrubbed…
Name: d3d-reset.patch
Type: application/octet-stream
Size: 7296 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130817/63dd4cae/attachment-0001.obj

Hi,

Thanks for the reply.

How do I patch my SDL - I am using the already compiled Windows version from the website?

I don’t know how to patch it.

JeZ+Lee

Sam Lantinga wrote:> I think I have a fix for this.

Can you try the attached patch?

On Sat, Aug 17, 2013 at 2:53 AM, JeZ-l-Lee <JessePalserMailingLists at gmail.com (JessePalserMailingLists at gmail.com)> wrote:

  [SDL2]-Transparency Fails After Window Resize?

Hi,

My team and I are developing a new 2d video game engine based on SDL 2.

We have found a problem:
On Windows 8 when the SDL 2 window is resized, texture alpha transparency fails?
(on window resize, alpha transparency is constantly fully opaque)

Anyone know why this occurs and know of a solution?
Thanks!

If you want to look at the source code or run the Windows binary then download from below URL:
http://16bitsoft.com/V2/Files/SDL2/TC4/Alpha/SDL2-TC4_Alpha1.zip (http://16bitsoft.com/V2/Files/SDL2/TC4/Alpha/SDL2-TC4_Alpha1.zip)

JeZ+Lee
JessePalser Gmail com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com (http://www.16BitSoft.com)


SDL mailing list
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

The idea is that you build it yourself from source, and incorporate the patch.________________________________
From: JeZ-l-Lee
To: sdl at lists.libsdl.org
Sent: Saturday, August 17, 2013 10:56 AM
Subject: Re: [SDL] [SDL2]-Transparency Fails After Window Resize?

Hi,

Thanks for the reply.

How do I patch my SDL - I am using the already compiled Windows version from the website?

I don’t know how to patch it.

JeZ+Lee

Sam Lantinga wrote:
I think I have a fix for this.

Can you try the attached patch?

On Sat, Aug 17, 2013 at 2:53 AM, JeZ-l-Lee <> wrote:

Quote:
[SDL2]-Transparency Fails After Window Resize?

Hi,

My team and I are developing a new 2d video game engine based on SDL 2.

We have found a problem:
On Windows 8 when the SDL 2 window is resized, texture alpha transparency fails?
(on window resize, alpha transparency is constantly fully opaque)

Anyone know why this occurs and know of a solution?
Thanks!

If you want to look at the source code or run the Windows binary then download from below URL:
http://16bitsoft.com/V2/Files/SDL2/TC4/Alpha/SDL2-TC4_Alpha1.zip

JeZ+Lee
JessePalser Gmail com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com


SDL mailing list

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

Mason Wheeler wrote:

The idea is that you build it yourself from source, and incorporate the patch.

Hi,

Sorry, I don’t know how to build SDL2 from source, I use Code::Blocks C++ IDE on Windows 8.

Is there a work-around I can try in my game project’s source code?------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

JeZ-l-Lee wrote:

Mason Wheeler wrote:

The idea is that you build it yourself from source, and incorporate the patch.

Hi,

Sorry, I don’t know how to build SDL2 from source, I use Code::Blocks C++ IDE on Windows 8.

Is there a work-around I can try in my game project’s source code?

It is not difficult to set up a virtual machine running linux, and install a cross-compiler to make windows builds for you.
If you don’t want to do that, I suggest you download visual C++ EE addition (free), and use that to make builds of SDL (and your program) (The IDE is much better than anything else I have seen on windows or linux, and the debugger is outstanding!).

**

It is not difficult to set up a virtual machine running linux, and install
a cross-compiler to make windows builds for you.
If you don’t want to do that, I suggest you download visual C++ EE
addition (free), and use that to make builds of SDL (and your program) (The
IDE is much better than anything else I have seen on windows or linux, and
the debugger is outstanding!).


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

Or you could probably install msys and build it like you would on LinuxOn Sun, Aug 18, 2013 at 5:44 AM, Sparks wrote:

Hi,

Sam fixed this issue and provided this new DLL:
http://16bitsoft.com/V2/Files/SDL2/SDL2.dll

Thanks!------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

It is not difficult to set up a virtual machine running linux, and
install a cross-compiler to make windows builds for you.

That’s sort of a roundabout way of doing things, isn’t it? :slight_smile:

–ryan.

Just wait until one gives up on the cross-compiler and builds using
Wine instead.

2013/8/18, Ryan C. Gordon :>

It is not difficult to set up a virtual machine running linux, and
install a cross-compiler to make windows builds for you.

That’s sort of a roundabout way of doing things, isn’t it? :slight_smile:

–ryan.


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