]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
zoomLimitedByTheBox should be set in the configure method
authorterencehill <piuntn@gmail.com>
Mon, 6 Feb 2012 20:04:54 +0000 (21:04 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 6 Feb 2012 20:04:54 +0000 (21:04 +0100)
qcsrc/menu/xonotic/screenshotimage.c

index adde95b87cbed97360d6aac5c41f80d37c4c5d30..f365d430eed3f2b6c45d5b6e270a1337c3cf27c5 100644 (file)
@@ -29,11 +29,11 @@ entity makeXonoticScreenshotImage()
 void XonoticScreenshotImage_configureXonoticScreenshotImage(entity me)
 {
        me.configureXonoticImage(me, string_null, -2);
+       me.zoomLimitedByTheBox = FALSE; // enable this to forbid enlarging the image more than the containing box (if making use of draw_SetClip is a too bad thing)
 }
 
 void XonoticScreenshotImage_load(entity me, string theImage)
 {
-       //me.zoomLimitedByTheBox = 1;
        me.screenshotTime = time;
        me.src = theImage;
        if (me.screenshotTitle)