DGLE-HQ / DGLE

Powerful independent cross-platform engine for 2D/3D games and visualizations. Young, strong and crazy!
http://dgle.dronprogs.org
GNU Lesser General Public License v3.0
161 stars 39 forks source link

Render 2D bug with centered image. #155

Closed megaDRONe86 closed 10 years ago

megaDRONe86 commented 11 years ago

Reproduction: image 1024X1024 screen size 1136X640 draw call _pTexIgdcLogo->Draw2DSimple((GAME_VIEWPORT_WIDTH - w) / 2, (GAME_VIEWPORT_HEIGHT - h) / 2); No image is presented on screen.

megaDRONe86 commented 10 years ago

This error was caused by convertion int to uint, fix is below: _pTexIgdcLogo->Draw2DSimple((GAME_VIEWPORT_WIDTH - w) / 2, (GAME_VIEWPORT_HEIGHT - (int)h) / 2);