- 
                Notifications
    
You must be signed in to change notification settings  - Fork 3.4k
 
Use struct info in src/library_sdl.js. NFC #22885
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
Conversation
| translateRGBAToColor: (r, g, b, a) => r | g << 8 | b << 16 | a << 24, | ||
| 
               | 
          ||
| makeSurface(width, height, flags, usePageCanvas, source, rmask, gmask, bmask, amask) { | ||
| var is_SDL_HWSURFACE = flags & 0x00000001; | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like SDL_HWSURFACE constant was wrong here.  It should have been 0x08000001.   Luckily it was still matching because its a subset of the bits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have some testing of this, but I'm not sure how much. Might be worth checking.
f821843    to
    86ab71f      
    Compare
  
    86ab71f    to
    da709b9      
    Compare
  
    
          
 We have tests at least the keyboard stuff because I made a mistake there and they failed. I double checked everything again and I think we are good now.  | 
    
Missed this one in emscripten-core#22885.
No description provided.