Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

change to a better approche than SetPixel (this is painful slow) #12

Closed
todo bot opened this issue Jul 2, 2019 · 0 comments
Closed

change to a better approche than SetPixel (this is painful slow) #12

todo bot opened this issue Jul 2, 2019 · 0 comments
Assignees

Comments

@todo
Copy link

todo bot commented Jul 2, 2019

ascii-art/src/harvest.c

Lines 230 to 235 in baa09fb

/* TODO: change to a better approche than SetPixel (this is painful slow) */
SetPixel(fb->device, position.x, position.y, RGB(color, color, color));
#else
void* address = fb->address + (position.y * fb->fix_info.line_length) + (position.x * 4 + 4);
if ((ulong_t)address <= (ulong_t)(fb->address + fb->size))


This issue was generated by todo based on a TODO comment in baa09fb when #11 was merged. cc @oAGoulart.
@todo todo bot assigned oAGoulart Jul 2, 2019
@todo todo bot added the todo 🗒️ label Jul 2, 2019
@oAGoulart oAGoulart changed the title change to a better approche than SetPixel (this is painful slow) */ change to a better approche than SetPixel (this is painful slow) Jul 2, 2019
oAGoulart added a commit that referenced this issue Jul 3, 2019
Close #12, close #4, and many updates
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant