| 139 | } |
| 140 | |
| 141 | void GuiImage::SetPixel(int x, int y, GXColor color) |
| 142 | { |
| 143 | if(!image || this->GetWidth() <= 0 || x < 0 || y < 0) |
| 144 | return; |
| 145 | |
| 146 | u32 offset = (((y >> 2)<<4)*this->GetWidth()) + ((x >> 2)<<6) + (((y%4 << 2) + x%4 ) << 1); |
| 147 | *(image+offset) = color.a; |
| 148 | *(image+offset+1) = color.r; |
| 149 | *(image+offset+32) = color.g; |
| 150 | *(image+offset+33) = color.b; |
| 151 | } |
| 152 | |
| 153 | void GuiImage::SetStripe(int s) |
| 154 | { |