Help with writing to external framebuffer March 05, 2015 09:10PM | Registered: 9 years ago Posts: 2 |
u32* tmp = xfb; //xfb is the external framebuffer tmp[x+(640*y)/2] = 0x00FF0000; // a colorto paint the (x, y) point with my desired color. I've noticed that xfb is only 320 points wide (xfb[319] is the last pixel in the first row, while xfb[320] is the first pixel in the second row), but upon closer inspection it seems that this way I'm painting two adjacent pixels (I imagine that this is due to the fact that the screen is actually 640x480). Is there an explanation for this behavior? How can I paint a (true) single pixel?
Re: Help with writing to external framebuffer March 06, 2015 09:35AM | Moderator Registered: 15 years ago Posts: 686 |
Re: Help with writing to external framebuffer March 07, 2015 12:02PM | Registered: 9 years ago Posts: 2 |
Re: Help with writing to external framebuffer March 11, 2015 11:43AM | Registered: 13 years ago Posts: 37 |
Re: Help with writing to external framebuffer March 13, 2015 08:48AM | Moderator Registered: 15 years ago Posts: 686 |