Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126390
b: refs/heads/master
c: fd00205
h: refs/heads/master
v: v3
  • Loading branch information
Hannes Eder authored and Linus Torvalds committed Jan 6, 2009
1 parent 18a9bf3 commit 0ab28f6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 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: 4fa34cd051db53a07e1004c7ab078ed13e721f21
refs/heads/master: fd002050becd888e4dab419aa59a6484afe1d00b
24 changes: 16 additions & 8 deletions trunk/drivers/video/intelfb/intelfbdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1493,8 +1493,10 @@ static void intelfb_fillrect (struct fb_info *info,
DBG_MSG("intelfb_fillrect\n");
#endif

if (!ACCEL(dinfo, info) || dinfo->depth == 4)
return cfb_fillrect(info, rect);
if (!ACCEL(dinfo, info) || dinfo->depth == 4) {
cfb_fillrect(info, rect);
return;
}

if (rect->rop == ROP_COPY)
rop = PAT_ROP_GXCOPY;
Expand All @@ -1521,8 +1523,10 @@ static void intelfb_copyarea(struct fb_info *info,
DBG_MSG("intelfb_copyarea\n");
#endif

if (!ACCEL(dinfo, info) || dinfo->depth == 4)
return cfb_copyarea(info, region);
if (!ACCEL(dinfo, info) || dinfo->depth == 4) {
cfb_copyarea(info, region);
return;
}

intelfbhw_do_bitblt(dinfo, region->sx, region->sy, region->dx,
region->dy, region->width, region->height,
Expand All @@ -1540,8 +1544,10 @@ static void intelfb_imageblit(struct fb_info *info,
#endif

if (!ACCEL(dinfo, info) || dinfo->depth == 4
|| image->depth != 1)
return cfb_imageblit(info, image);
|| image->depth != 1) {
cfb_imageblit(info, image);
return;
}

if (dinfo->depth != 8) {
fgcolor = dinfo->pseudo_palette[image->fg_color];
Expand All @@ -1554,8 +1560,10 @@ static void intelfb_imageblit(struct fb_info *info,
if (!intelfbhw_do_drawglyph(dinfo, fgcolor, bgcolor, image->width,
image->height, image->data,
image->dx, image->dy,
dinfo->pitch, info->var.bits_per_pixel))
return cfb_imageblit(info, image);
dinfo->pitch, info->var.bits_per_pixel)) {
cfb_imageblit(info, image);
return;
}
}

static int intelfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
Expand Down

0 comments on commit 0ab28f6

Please sign in to comment.