LunarSoul said:
I do have a question of my own, though.
Is there a way to render my own graphic? I need to show a message from textbox.pbm that represents ram offset 0x49dda0, along with a graphic beside it.
Code:
PUSH (graphicsid)
LEA EAX,[some address] ;rects
PUSH EAX
PUSH (y)
PUSH (x)
PUSH 48F91C
CALL 40C3C0
ADD ESP,14
There's the rendering function. I think I mentioned that to you that before.
The most important part is pushing the rects address. You should store your framerects for the graphic you want to render into some local variables, such as [EBP-4], [EBP-8], and so forth.
Next, as soon as you have your list of 4 numbers, such as {10,20,30,40}, and you want to use that as your rects, then you LEA into EAX the address of the last number (in this case, 40).
For example...
Code:
MOV DWORD [EBP-4],10 ;lower
MOV DWORD [EBP-8],20 ;right
MOV DWORD [EBP-C],30 ;upper
MOV DWORD [EBP-10],40 ;left (ok fine these framerect numbers make no sense but just ignore that)
PUSH (graphicsid)
LEA EAX,[EBP-10]
PUSH EAX
... and so on.
After that, you should be set. Obviously, you can use any register (not just EAX) to do the LEA part.