src/render/psp/SDL_render_psp.c
changeset 11229 436b07ff41b4
parent 10737 3406a0f8b041
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11228:af4c3dc6b97f 11229:436b07ff41b4
   947     vertices[3].v = v0;
   947     vertices[3].v = v0;
   948     vertices[3].x = x + cw + sh;
   948     vertices[3].x = x + cw + sh;
   949     vertices[3].y = y + sw - ch;
   949     vertices[3].y = y + sw - ch;
   950     vertices[3].z = 0;
   950     vertices[3].z = 0;
   951 
   951 
   952     if (flip & SDL_FLIP_HORIZONTAL) {
   952     if (flip & SDL_FLIP_VERTICAL) {
   953                 Swap(&vertices[0].v, &vertices[2].v);
   953                 Swap(&vertices[0].v, &vertices[2].v);
   954                 Swap(&vertices[1].v, &vertices[3].v);
   954                 Swap(&vertices[1].v, &vertices[3].v);
   955     }
   955     }
   956     if (flip & SDL_FLIP_VERTICAL) {
   956     if (flip & SDL_FLIP_HORIZONTAL) {
   957                 Swap(&vertices[0].u, &vertices[2].u);
   957                 Swap(&vertices[0].u, &vertices[2].u);
   958                 Swap(&vertices[1].u, &vertices[3].u);
   958                 Swap(&vertices[1].u, &vertices[3].u);
   959     }
   959     }
   960 
   960 
   961     sceGuDrawArray(GU_TRIANGLE_FAN, GU_TEXTURE_32BITF|GU_VERTEX_32BITF|GU_TRANSFORM_2D, 4, 0, vertices);
   961     sceGuDrawArray(GU_TRIANGLE_FAN, GU_TEXTURE_32BITF|GU_VERTEX_32BITF|GU_TRANSFORM_2D, 4, 0, vertices);