RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Discuss any general programming issues here
Post Reply
Bugala
Posts: 1181
Joined: Sun Feb 14, 2010 7:11 pm

RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Post by Bugala »

Here the minimum code:

Code: Select all

@REQUIRE "rebelsdl"

BeginDoubleBuffer(True)


Circle(100, 100, 200, ARGB(128, $aaaaaa))
Flip()
WaitRightMouse()
Hollywood 9.1 Windows 10

Two problems with this.

1. It crashes
2. It doesnt show any error.

Is this supposed to be so? I understood that when using the Circle command on RebelSDL it would revert to using Hollywoods own drawing instead of RebelSDL, since RebelSDL doesnt support drawing a circle.

Also, this only happens when trying to draw alpha circle. If I use instead of "ARGB(128, $aaaaaa)" - "#WHITE" as example, it will work fine, so seems to be alpha channel usage the issue.
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Post by airsoftsoftwair »

Bugala wrote: Mon Sep 25, 2023 5:40 pm Is this supposed to be so?
Nope, this is clearly a bug. Will be fixed.
Bugala
Posts: 1181
Joined: Sun Feb 14, 2010 7:11 pm

Re: RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Post by Bugala »

Just noticed this same problem is with GLGalore as well.

Just using DoubleBuffer without @REQUIRE for RebelSDL or GLGalore, however, works right in Windows.
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: RebelSDL drawing alpha circle in doublebuffer(true) crashes program.

Post by airsoftsoftwair »

Bugala wrote: Tue Oct 03, 2023 5:39 pm Just noticed this same problem is with GLGalore as well.
Yes, that's no surprise because it uses the same plugin interface as RebelSDL.
Post Reply