Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
c254a3d6
Commit
c254a3d6
authored
Sep 02, 2008
by
Jorge Zapata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes a divizion by zero when the mode width is 0
parent
a3bb2e4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
drivers/video/dm/dm_main.c
drivers/video/dm/dm_main.c
+2
-1
No files found.
drivers/video/dm/dm_main.c
View file @
c254a3d6
...
...
@@ -1377,7 +1377,8 @@ static int davincifb_check_var(struct fb_var_screeninfo *var,
}
else
v
.
xres_virtual
=
v
.
xres
;
v
.
yres_virtual
=
(
w
->
fb_size
/
v
.
bits_per_pixel
*
8
)
/
v
.
xres_virtual
;
v
.
yres_virtual
=
(
w
->
fb_size
/
v
.
bits_per_pixel
*
8
)
/
(
v
.
xres_virtual
?
v
.
xres_virtual
:
1
);
if
(
v
.
yres_virtual
<
v
.
yres
)
v
.
yres
=
v
.
yres_virtual
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment