1 |
/* |
/* |
2 |
* Copyright (C) 2003-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2003-2007 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_fb.c,v 1.127 2006/10/22 04:20:53 debug Exp $ |
* $Id: dev_fb.c,v 1.129 2007/04/28 09:19:51 debug Exp $ |
29 |
* |
* |
30 |
* Generic framebuffer device. |
* Generic framebuffer device. |
31 |
* |
* |
268 |
d->framebuffer + dest_ofs; |
d->framebuffer + dest_ofs; |
269 |
|
|
270 |
if (d->bit_depth == 24) { |
if (d->bit_depth == 24) { |
271 |
for (x=0; x<linelen && x<sizeof(buf); |
for (x=0; x<linelen && x < |
272 |
x += 3) { |
(int) sizeof(buf); x += 3) { |
273 |
buf[x] = fill_r; |
buf[x] = fill_r; |
274 |
buf[x+1] = fill_g; |
buf[x+1] = fill_g; |
275 |
buf[x+2] = fill_b; |
buf[x+2] = fill_b; |