src/render/direct3d/SDL_render_d3d.c
changeset 7472 0ec51bd57d56
parent 7369 80215ecb81cf
child 7502 6ff02ff3cf06
equal deleted inserted replaced
7471:75726efbf679 7472:0ec51bd57d56
   900 
   900 
   901     if (!SDL_RectEmpty(rect)) {
   901     if (!SDL_RectEmpty(rect)) {
   902         IDirect3DDevice9_SetRenderState(data->device, D3DRS_SCISSORTESTENABLE, TRUE);
   902         IDirect3DDevice9_SetRenderState(data->device, D3DRS_SCISSORTESTENABLE, TRUE);
   903         r.left = rect->x;
   903         r.left = rect->x;
   904         r.top = rect->y;
   904         r.top = rect->y;
   905         r.right = rect->w + rect->w;
   905         r.right = rect->x + rect->w;
   906         r.bottom = rect->y + rect->h;
   906         r.bottom = rect->y + rect->h;
   907 
   907 
   908         result = IDirect3DDevice9_SetScissorRect(data->device, &r);
   908         result = IDirect3DDevice9_SetScissorRect(data->device, &r);
   909         if (result != D3D_OK) {
   909         if (result != D3D_OK) {
   910             D3D_SetError("SetScissor()", result);
   910             D3D_SetError("SetScissor()", result);