I have the following problem
I see that when screen resolution exceeds the panel bitmap dimension
the panel bitmap is stretched to fill entire screen, that's OK
But i try do display some text using GDI calls on the DC given by oapiGetDC
I see that my GDI calls are stretched the same way
I cannot get the text displayed correctly without transformation
what GDI function will tell me the scaling invoked by orbiter
I tried the getWorldTransform, GetWindowExtEx,GetViewportExtEx fucntions without success (all returned 1.0 no scaling)
thanks
PS : I suppose only doc martins can answer to this, so doc if you see this, please
ok I think I figured how it works
the dc given by oapigetdc is a memory dc
it is then stretched to screen size later
so no easy way to avoid stretching
I see that when screen resolution exceeds the panel bitmap dimension
the panel bitmap is stretched to fill entire screen, that's OK
But i try do display some text using GDI calls on the DC given by oapiGetDC
I see that my GDI calls are stretched the same way
I cannot get the text displayed correctly without transformation
what GDI function will tell me the scaling invoked by orbiter
I tried the getWorldTransform, GetWindowExtEx,GetViewportExtEx fucntions without success (all returned 1.0 no scaling)
thanks
PS : I suppose only doc martins can answer to this, so doc if you see this, please
ok I think I figured how it works
the dc given by oapigetdc is a memory dc
it is then stretched to screen size later
so no easy way to avoid stretching
Last edited: