Comments (4)
I think I found the problem.
Apparently the SDL_SetColorKey should not be passed the Internal_Surface_Pointer, but the Internal_Surface itself.
A bit strange but it appears to work :-)
This is probably because the Ada 'in out' parameter already made it a reference. In which case this change also applies to similar calls in sdl-video-surfaces.
from sdlada.
Had to think about this for a while. The surface should be in not in out, but I've added a comment there for later reference.
from sdlada.
This had crossed my mind also and I agree that in is the best solution.
Note however that this also applies to other procedures and functions in sdl-video-surfaces!
from sdlada.
Have fixed the other functions with in out Internal_Surface_Pointer
to be just in Internal_Surface_Pointer
parameters, so they should work now.
from sdlada.
Related Issues (20)
- hi HOT 1
- Constraint_Error when reading Event.Window.Event_ID HOT 1
- Allow building as a relocatable library HOT 2
- Incorrect Key_Codes constants in sdl-events-keyboards.ads HOT 1
- test
- Add gamepad rumble support HOT 2
- Add mixer HOT 1
- Fix controlled objects
- Fails at program exit on macOS HOT 1
- Set_Colour_Key not working HOT 4
- Not working with Homebrew SDL2
- Compile of SDL.Video.Palettes fails
- Wrong interfacing to SDL_RenderGet/SetLogicalSize
- libsdlada.a can't link to sdl2 in linux HOT 16
- Issues With Compiling This Project HOT 9
- Possible Newer Version of GNAT not compiling this project. HOT 11
- Suggestion: Remove dependence on C HOT 1
- Suggestion: Simplifying gpr project files
- Suggestion: Turn SDLAda into a community project HOT 1
- SDL2 headers not found on FreeBSD HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdlada.