Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54889
b: refs/heads/master
c: 448d479
h: refs/heads/master
i:
  54887: 72d457f
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed May 8, 2007
1 parent 01b435b commit fff97d1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 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: 250038f5a7207796fb54aff3dc686d664659cf0c
refs/heads/master: 448d479747b85eb2e284c29622d31f5485db6819
34 changes: 15 additions & 19 deletions trunk/drivers/video/fbmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,37 +376,33 @@ static void fb_rotate_logo(struct fb_info *info, u8 *dst,
}

static void fb_do_show_logo(struct fb_info *info, struct fb_image *image,
int rotate)
int rotate, unsigned int num)
{
int x;
unsigned int x;

if (rotate == FB_ROTATE_UR) {
for (x = 0; x < num_online_cpus() &&
x * (fb_logo.logo->width + 8) <=
info->var.xres - fb_logo.logo->width; x++) {
for (x = 0;
x < num && image->dx + image->width <= info->var.xres;
x++) {
info->fbops->fb_imageblit(info, image);
image->dx += fb_logo.logo->width + 8;
image->dx += image->width + 8;
}
} else if (rotate == FB_ROTATE_UD) {
for (x = 0; x < num_online_cpus() &&
x * (fb_logo.logo->width + 8) <=
info->var.xres - fb_logo.logo->width; x++) {
for (x = 0; x < num && image->dx >= 0; x++) {
info->fbops->fb_imageblit(info, image);
image->dx -= fb_logo.logo->width + 8;
image->dx -= image->width + 8;
}
} else if (rotate == FB_ROTATE_CW) {
for (x = 0; x < num_online_cpus() &&
x * (fb_logo.logo->width + 8) <=
info->var.yres - fb_logo.logo->width; x++) {
for (x = 0;
x < num && image->dy + image->height <= info->var.yres;
x++) {
info->fbops->fb_imageblit(info, image);
image->dy += fb_logo.logo->width + 8;
image->dy += image->height + 8;
}
} else if (rotate == FB_ROTATE_CCW) {
for (x = 0; x < num_online_cpus() &&
x * (fb_logo.logo->width + 8) <=
info->var.yres - fb_logo.logo->width; x++) {
for (x = 0; x < num && image->dy >= 0; x++) {
info->fbops->fb_imageblit(info, image);
image->dy -= fb_logo.logo->width + 8;
image->dy -= image->height + 8;
}
}
}
Expand Down Expand Up @@ -532,7 +528,7 @@ int fb_show_logo(struct fb_info *info, int rotate)
fb_rotate_logo(info, logo_rotate, &image, rotate);
}

fb_do_show_logo(info, &image, rotate);
fb_do_show_logo(info, &image, rotate, num_online_cpus());

kfree(palette);
if (saved_pseudo_palette != NULL)
Expand Down

0 comments on commit fff97d1

Please sign in to comment.