![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Allow user to connect multiple screen.
uLCD_Multiscreen/Blit.cpp@0:052d0f82433e, 2015-03-11 (annotated)
- Committer:
- Ratchapong
- Date:
- Wed Mar 11 05:00:37 2015 +0000
- Revision:
- 0:052d0f82433e
Working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ratchapong | 0:052d0f82433e | 1 | #include "Blit.h" |
Ratchapong | 0:052d0f82433e | 2 | Blit::Blit(int x, int y, int w, int h, int *colors) { |
Ratchapong | 0:052d0f82433e | 3 | this->x = x; |
Ratchapong | 0:052d0f82433e | 4 | this->y = y; |
Ratchapong | 0:052d0f82433e | 5 | this->w = w; |
Ratchapong | 0:052d0f82433e | 6 | this->h = h; |
Ratchapong | 0:052d0f82433e | 7 | this->colors = new int[w*h]; |
Ratchapong | 0:052d0f82433e | 8 | for (int i = 0; i < w*h; i++) { |
Ratchapong | 0:052d0f82433e | 9 | this->colors[i] = colors[i]; |
Ratchapong | 0:052d0f82433e | 10 | } |
Ratchapong | 0:052d0f82433e | 11 | } |
Ratchapong | 0:052d0f82433e | 12 | void Blit::execute(uLCD_4DGL* uLCD) { |
Ratchapong | 0:052d0f82433e | 13 | uLCD->BLIT(x,y,w,h,colors); |
Ratchapong | 0:052d0f82433e | 14 | } |