Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with blitting Shapes in Windows under Kick/WB 2.0 #99

Open
Emsgold opened this issue Nov 12, 2024 · 2 comments
Open

Problem with blitting Shapes in Windows under Kick/WB 2.0 #99

Emsgold opened this issue Nov 12, 2024 · 2 comments
Assignees
Labels
blitzlib related to a certain blitz library investigation

Comments

@Emsgold
Copy link

Emsgold commented Nov 12, 2024

I don't think that this is a new (3.9.10) problem, but at least it's in AmiBlitz 3.9.10. With Blitz Basic 2.10 I don't have this problem:

Using this code the shapes (the "please wait" is a shape!) will be blitted on the window and as a shapegadget. This works on Kick 3.1 and 3.2. But when I try it on Kick 2.0 with WB 2.0, it shows garbled graphics or nothing at all:

WBStartup
FindScreen 0

LoadShape 1,"wait.bsh"
LoadShape 5,"stop.bsh"
LoadShape 6,"stop2.bsh"

ShapeGadget 1,90,60,  0,3,5,6 ;Stopp

DefaultIDCMP $40|$100|$200
   winflags.l=$2|$4|$8|$1000|$200000
Window 1,150,80,277,105,winflags,"Shapetest",0,1,1
Use Window 1
WJam 0

WBlit 1,10,30

Repeat
  ev.l=WaitEvent
  If ev=$200 Then End  ;close-Gadget selected
Forever

This is the result on Kick 2.0. On the left-hand-side you can see the executable that has been created using AmiBlitz 3.9.10, on the right-hand-side you see the expected result using the executable from BlitzBasic 2.10.

screenshot-2024-11-12-12-43-30

Here are the executables and the shapes:
shapetest2.zip

@honitos honitos added investigation blitzlib related to a certain blitz library labels Nov 12, 2024
@honitos honitos self-assigned this Nov 12, 2024
@honitos
Copy link
Member

honitos commented Jan 30, 2025

Still works with AmiBlitz3.0 so any change between that version and AB3.10 must be the cause.

I assume a change in windowslib or bitmaplib...

@honitos
Copy link
Member

honitos commented Jan 30, 2025

It is the windowslib. With the old windowslib from 3.8 it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blitzlib related to a certain blitz library investigation
Projects
None yet
Development

No branches or pull requests

2 participants