- if (skyscissor[0] > scissor[0])
- {
- skyscissor[2] += skyscissor[0] - scissor[0];
- skyscissor[0] = scissor[0];
- }
- if (skyscissor[1] > scissor[1])
- {
- skyscissor[3] += skyscissor[1] - scissor[1];
- skyscissor[1] = scissor[1];
- }
- if (skyscissor[0] + skyscissor[2] < scissor[0] + scissor[2])
- skyscissor[2] = scissor[0] + scissor[2] - skyscissor[0];
- if (skyscissor[1] + skyscissor[3] < scissor[1] + scissor[3])
- skyscissor[3] = scissor[1] + scissor[3] - skyscissor[1];