patched default wheellinescroll usersetting
authorRob Haarsma <phaseIV@zonnet.nl>
Mon, 10 Feb 2003 14:14:35 +0000 (14:14 +0000)
committerRob Haarsma <phaseIV@zonnet.nl>
Mon, 10 Feb 2003 14:14:35 +0000 (14:14 +0000)
source/blender/blenkernel/intern/blender.c
source/blender/src/space.c

index 2c200084f62f0b4e79d3a8af0981aec3bd235fa3..1fc502161d484a9c5e56fcc8bd09b6bd9c8fddf3 100644 (file)
@@ -261,6 +261,7 @@ static void setup_app_data(BlendFileData *bfd, char *filename) {
        if (bfd->user) {
                U= *bfd->user;
                MEM_freeN(bfd->user);
+               if(U.wheellinescroll == 0) U.wheellinescroll = 3;
        }
        
        R.winpos= bfd->winpos;
index 18d312910c1b1bb10d83f9fee02336b6eb55b3ea..01813ef8026a3f6a4386a72a1406a606f5619dcc 100644 (file)
@@ -1399,7 +1399,7 @@ void drawinfospace(void)
 
        uiDefButI(block, NUM, 0, "WLines",
                        1153,54,70,20, &U.wheellinescroll,
-                       0.0, 32.0, 0, 0,
+                       1.0, 32.0, 0, 0,
                        "Mousewheel: The number of lines that get scrolled");
        uiDefButS(block, TOG|BIT|2, 0, "WZoom",
                        1081,54,70,20, &(U.uiflag), 0, 0, 0, 0,