Hello, thanks for reading my post. I hope you will be able to offer me some help for my problem. I am programming a 2D engine using SDL, and I am having a small amount of trouble getting ASM to work correctly. Here's the code:
Code:
__asm
{
// ... A bit of code here
push 0xffffff // In SDL this is 'white'
mov edx, DWORD PTR dest1 // 'SDL_Rect dest1;'
push edx
mov ecx, DWORD PTR screen // 'SDL_Surface *screen;'
push ecx
call SDL_FillRect // Calls 'SDL_FillRect(...)' function
add esp, 12
// ... More code here
}
That code will fill the ENTIRE screen white, while:
Code:
SDL_FillRect(screen, &dest1, 0xffffff);
Will give me what I need. Can you tell me what I am doing wrong?
Thanks in Advance,
Matt U.