| 105 | } |
| 106 | |
| 107 | void PiuGIFImageDictionary(xsMachine* the, void* it) |
| 108 | { |
| 109 | PiuGIFImage* self = it; |
| 110 | if (xsFindResult(xsArg(1), xsID_path)) { |
| 111 | xsSlot* path = PiuString(xsResult); |
| 112 | (*self)->path = path; |
| 113 | } |
| 114 | else if (xsFindResult(xsArg(1), xsID_buffer)) { |
| 115 | xsSlot* buffer = xsToReference(xsResult); |
| 116 | (*self)->buffer = buffer; |
| 117 | } |
| 118 | if (xsFindResult(xsArg(1), xsID_flip)) { |
| 119 | xsSlot* flip = PiuString(xsResult); |
| 120 | (*self)->flip = flip; |
| 121 | } |
| 122 | if (xsFindResult(xsArg(1), xsID_color)) { |
| 123 | PiuColorRecord color; |
| 124 | PiuColorDictionary(the, &xsResult, &color); |
| 125 | (*self)->color = color; |
| 126 | (*self)->flags |= piuColorized; |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | void PiuGIFImageDraw(void* it, PiuView* view, PiuRectangle area) |
| 131 | { |
no test coverage detected