Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164844
b: refs/heads/master
c: 6e3658f
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Linus Torvalds committed Sep 23, 2009
1 parent 436f6bc commit 975fb56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d480ace08d5b59133575e672a0bd1c97b0f8400f
refs/heads/master: 6e3658f0df6f708202159302b4f3915d9b97b8dc
12 changes: 8 additions & 4 deletions trunk/drivers/video/platinumfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,14 @@ static int platinumfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,

static inline int platinum_vram_reqd(int video_mode, int color_mode)
{
return vmode_attrs[video_mode-1].vres *
(vmode_attrs[video_mode-1].hres * (1<<color_mode) +
((video_mode == VMODE_832_624_75) &&
(color_mode > CMODE_8)) ? 0x10 : 0x20) + 0x1000;
int baseval = vmode_attrs[video_mode-1].hres * (1<<color_mode);

if ((video_mode == VMODE_832_624_75) && (color_mode > CMODE_8))
baseval += 0x10;
else
baseval += 0x20;

return vmode_attrs[video_mode-1].vres * baseval + 0x1000;
}

#define STORE_D2(a, d) { \
Expand Down

0 comments on commit 975fb56

Please sign in to comment.