I want to create a surface that is just the size of the text I wite in it.
The only way I found is to do DrawText twice, one with GDDRAWTEXT_CALCWIDTH set, the next without.
Not very useful...
You have to create a larger surface, draw the text in it to calculate the size and then create the surface with the right size...
jul'
The only way I found is to do DrawText twice, one with GDDRAWTEXT_CALCWIDTH set, the next without.
Not very useful...
You have to create a larger surface, draw the text in it to calculate the size and then create the surface with the right size...
jul'