patched default wheellinescroll usersetting

This commit is contained in:
2003-02-10 14:14:35 +00:00
parent 19a8c2eae4
commit 0f09f68e53
2 changed files with 2 additions and 1 deletions

View File

@@ -261,6 +261,7 @@ static void setup_app_data(BlendFileData *bfd, char *filename) {
if (bfd->user) { if (bfd->user) {
U= *bfd->user; U= *bfd->user;
MEM_freeN(bfd->user); MEM_freeN(bfd->user);
if(U.wheellinescroll == 0) U.wheellinescroll = 3;
} }
R.winpos= bfd->winpos; R.winpos= bfd->winpos;

View File

@@ -1399,7 +1399,7 @@ void drawinfospace(void)
uiDefButI(block, NUM, 0, "WLines", uiDefButI(block, NUM, 0, "WLines",
1153,54,70,20, &U.wheellinescroll, 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"); "Mousewheel: The number of lines that get scrolled");
uiDefButS(block, TOG|BIT|2, 0, "WZoom", uiDefButS(block, TOG|BIT|2, 0, "WZoom",
1081,54,70,20, &(U.uiflag), 0, 0, 0, 0, 1081,54,70,20, &(U.uiflag), 0, 0, 0, 0,