| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0002488 | NetSurf | Framebuffer-specific | public | 2016-12-04 03:53 | 2019-05-06 13:16 | ||||||||
| Reporter | Anthony J. Bentley | ||||||||||||
| Assigned To | |||||||||||||
| Severity | major | Reproducibility | always | ||||||||||
| Status | confirmed | Resolution | open | ||||||||||
| Platform | PowerPC | OS | OpenBSD | OS Version | |||||||||
| Product Version | |||||||||||||
| Target Version | Fixed in Version | ||||||||||||
| Summary | 0002488: Framebuffer bad endianness when loading images | ||||||||||||
| Description | When "netsurf-fb -b 8" or "netsurf-fb -b 16" is run on OpenBSD/macppc (big-endian), images are not displayed properly. All graphics in webpages, and all framebuffer bitmaps including mouse pointer and toolbar buttons, have incorrect colors. (fb-8-16.png) The problem is partly due to some casts of pixdata from uint8_t[] to uint32_t*: frontends/framebuffer/fbtk/fbtk.c:fbtk_set_ptr() frontends/framebuffer/fbtk/bitmap.c:fb_redraw_bitmap() frontends/framebuffer/framebuffer.c:framebuffer_set_cursor() Naively putting a byteswap in libnsfb's plotting (naive-byteswap.diff) "fixes" the issue, except it doesn't fix the throbber and it leaves some ghosting after the cursor (fb-8-16-with-naive-byteswap.png). A better fix is probably to generate uint32_t from the start. This is platform-independent and not very intrusive (better-fix.diff), but only fixes generated/fbtk images, and doesn't help with fetched images (fb-8-16-with-better-fix.png). It's a start, though. | ||||||||||||
| Tags | No tags attached. | ||||||||||||
| Fixed in CI build # | |||||||||||||
| Reported in CI build # | |||||||||||||
| URL of problem page | |||||||||||||
| Attached Files |
| ||||||||||||
Notes |
|
|
Vincent Sanders (administrator) 2016-12-31 12:29 |
will look at sorting this. currently rummaging around for a big endian system to play with. |
Issue History |
|||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2016-12-04 03:53 | Anthony J. Bentley | New Issue | |
| 2016-12-04 03:53 | Anthony J. Bentley | File Added: fb-8-16.png | |
| 2016-12-04 03:54 | Anthony J. Bentley | File Added: naive-byteswap.diff | |
| 2016-12-04 03:55 | Anthony J. Bentley | File Added: fb-8-16-with-naive-byteswap.png | |
| 2016-12-04 03:56 | Anthony J. Bentley | File Added: better-fix.diff | |
| 2016-12-04 03:58 | Anthony J. Bentley | File Added: fb-8-16-with-better-patch.png | |
| 2016-12-31 12:29 | Vincent Sanders | Note Added: 0001467 | |
| 2016-12-31 12:29 | Vincent Sanders | Assigned To | => Vincent Sanders |
| 2016-12-31 12:29 | Vincent Sanders | Status | new => confirmed |
| 2019-05-06 13:16 | Vincent Sanders | Assigned To | Vincent Sanders => |


