comparison src/video/ps2gs/SDL_gsvideo.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents c121d94672cb
children 99210400e8b9
comparison
equal deleted inserted replaced
2697:c9121b04cffa 2698:e1da92da346c
230 static unsigned long long tex_tags[] __attribute__ ((aligned(16))) = { 230 static unsigned long long tex_tags[] __attribute__ ((aligned(16))) = {
231 3 | (1LL << 60), /* GIFtag */ 231 3 | (1LL << 60), /* GIFtag */
232 0x0e, /* A+D */ 232 0x0e, /* A+D */
233 0, /* 2 */ 233 0, /* 2 */
234 PS2_GS_TEX0_1, (1 << 5) + (1 << 6), PS2_GS_TEX1_1, 0, PS2_GS_TEXFLUSH}; 234 PS2_GS_TEX0_1, (1 << 5) + (1 << 6), PS2_GS_TEX1_1, 0, PS2_GS_TEXFLUSH};
235
235 static unsigned long long scale_tags[] __attribute__ ((aligned(16))) = { 236 static unsigned long long scale_tags[] __attribute__ ((aligned(16))) = {
236 5 | (1LL << 60), /* GIFtag */ 237 5 | (1LL << 60), /* GIFtag */
237 0x0e, /* A+D */ 238 0x0e, /* A+D */
238 6 + (1 << 4) + (1 << 8), PS2_GS_PRIM, ((unsigned long long) 0 * 16) + (((unsigned long long) 0 * 16) << 16), PS2_GS_UV, ((unsigned long long) 0 * 16) + (((unsigned long long) 0 * 16) << 16), PS2_GS_XYZ2, 0, /* 8 */ 239 6 + (1 << 4) + (1 << 8), PS2_GS_PRIM, ((unsigned long long) 0 * 16) + (((unsigned long long) 0 * 16) << 16), PS2_GS_UV, ((unsigned long long) 0 * 16) + (((unsigned long long) 0 * 16) << 16), PS2_GS_XYZ2, 0, /* 8 */
239 PS2_GS_UV, 0, /* 10 */ 240 PS2_GS_UV, 0, /* 10 */
571 static int 572 static int
572 GS_AllocHWSurface(_THIS, SDL_Surface * surface) 573 GS_AllocHWSurface(_THIS, SDL_Surface * surface)
573 { 574 {
574 return (-1); 575 return (-1);
575 } 576 }
577
576 static void 578 static void
577 GS_FreeHWSurface(_THIS, SDL_Surface * surface) 579 GS_FreeHWSurface(_THIS, SDL_Surface * surface)
578 { 580 {
579 return; 581 return;
580 } 582 }
583
581 static int 584 static int
582 GS_LockHWSurface(_THIS, SDL_Surface * surface) 585 GS_LockHWSurface(_THIS, SDL_Surface * surface)
583 { 586 {
584 if (surface == this->screen) { 587 if (surface == this->screen) {
585 /* Since mouse motion affects 'pixels', lock it */ 588 /* Since mouse motion affects 'pixels', lock it */
604 /* We're finished! */ 607 /* We're finished! */
605 SDL_UnlockCursor(); 608 SDL_UnlockCursor();
606 } 609 }
607 return (0); 610 return (0);
608 } 611 }
612
609 static void 613 static void
610 GS_UnlockHWSurface(_THIS, SDL_Surface * surface) 614 GS_UnlockHWSurface(_THIS, SDL_Surface * surface)
611 { 615 {
612 if (surface == this->screen) { 616 if (surface == this->screen) {
613 /* Since mouse motion affects 'pixels', lock it */ 617 /* Since mouse motion affects 'pixels', lock it */