| 312 | } |
| 313 | |
| 314 | void PiuPort_fillTexture(xsMachine* the) |
| 315 | { |
| 316 | PiuPort* self = PIU(Port, xsThis); |
| 317 | PiuView* view = (*self)->view; |
| 318 | PiuTexture* texture; |
| 319 | PiuColorRecord color; |
| 320 | PiuCoordinate x, y, sx, sy; |
| 321 | PiuDimension w, h, sw, sh; |
| 322 | if (!view) xsUnknownError("out of sequence"); |
| 323 | texture = PIU(Texture, xsArg(0)); |
| 324 | PiuColorDictionary(the, &xsArg(1), &color); |
| 325 | x = xsToPiuCoordinate(xsArg(2)); |
| 326 | y = xsToPiuCoordinate(xsArg(3)); |
| 327 | w = xsToPiuDimension(xsArg(4)); |
| 328 | h = xsToPiuDimension(xsArg(5)); |
| 329 | sx = xsToPiuCoordinate(xsArg(6)); |
| 330 | sy = xsToPiuCoordinate(xsArg(7)); |
| 331 | sw = xsToPiuDimension(xsArg(8)); |
| 332 | sh = xsToPiuDimension(xsArg(9)); |
| 333 | PiuViewPushColorFilter(view, &color); |
| 334 | PiuViewFillTexture(view, texture, x, y, w, h, sx, sy, sw, sh); |
| 335 | PiuViewPopColorFilter(view); |
| 336 | } |
| 337 | |
| 338 | void PiuPort_invalidate(xsMachine* the) |
| 339 | { |
nothing calls this directly
no test coverage detected