1/* 2 * Copyright 1999, Be Incorporated. 3 * Copyright 2007, Haiku. 4 * Distributed under the terms of the MIT License. 5 * 6 * Authors: 7 * Be Incorporated 8 * Eric Petit <eric.petit@lapsus.org> 9 * Michael Pfeiffer <laplace@users.sourceforge.net> 10 */ 11 12 13#include "GlobalData.h" 14 15 16void 17SCREEN_TO_SCREEN_BLIT(engine_token *et, blit_params *list, uint32 count) 18{ 19 uint32 i; 20 blit_params *b; 21 22 FifoBeginWrite(); 23 for (i = 0; i < count; i++) { 24 b = &list[i]; 25#if 0 26 TRACE("BLIT %dx%d, %dx%d->%dx%d\n", b->width + 1, b->height + 1, 27 b->src_left, b->src_top, b->dest_left, b->dest_top); 28#endif 29 FifoWrite(SVGA_CMD_RECT_COPY); 30 FifoWrite(b->src_left); 31 FifoWrite(b->src_top); 32 FifoWrite(b->dest_left); 33 FifoWrite(b->dest_top); 34 FifoWrite(b->width + 1); 35 FifoWrite(b->height + 1); 36 } 37 FifoEndWrite(); 38 FifoSync(); 39} 40 41 42void 43FILL_RECTANGLE(engine_token *et, uint32 colorIndex, 44 fill_rect_params *list, uint32 count) 45{ 46 uint32 i; 47 fill_rect_params *f; 48 49 for (i = 0; i < count; i++) { 50 f = &list[i]; 51#if 0 52 TRACE("FILL %lX, %dx%d->%dx%d\n", colorIndex, 53 f->left, f->top, f->right, f->bottom); 54#endif 55 /* TODO */ 56 } 57} 58 59 60void 61INVERT_RECTANGLE(engine_token *et, fill_rect_params *list, uint32 count) 62{ 63 /* TODO */ 64} 65 66 67void 68FILL_SPAN(engine_token * et, uint32 colorIndex, uint16 * list, uint32 count) 69{ 70 /* TODO */ 71} 72 73