summaryrefslogtreecommitdiff
path: root/src/PowderToySDL.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-25 16:52:04 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-25 16:52:04 (GMT)
commit44e41a3b28b656af32a58dc001d51ff2355c7d53 (patch)
treebf277d805f08c612f0024bb6a8b05121df475bfa /src/PowderToySDL.cpp
parentdacb774ae01102f756e92449ef395fb938a2acf0 (diff)
downloadpowder-44e41a3b28b656af32a58dc001d51ff2355c7d53.zip
powder-44e41a3b28b656af32a58dc001d51ff2355c7d53.tar.gz
Fix Line scaling for OpenGL inetrgsdfkjdslkfjs
Diffstat (limited to 'src/PowderToySDL.cpp')
-rw-r--r--src/PowderToySDL.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp
index afc385d..616575a 100644
--- a/src/PowderToySDL.cpp
+++ b/src/PowderToySDL.cpp
@@ -206,6 +206,8 @@ int main(int argc, char * argv[])
currentWidth = width;
currentHeight = height;
inputScale = float(XRES+BARSIZE)/currentWidth;
+
+ glLineWidth(currentWidth/float(XRES+BARSIZE));
if(sdl_scrn == NULL)
{
std::cerr << "Oh bugger" << std::endl;