|
@@ -30,12 +30,12 @@
|
|
|
|
|
|
static void SDL_Blit_XRGB8888_XRGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -113,12 +113,12 @@ static void SDL_Blit_XRGB8888_XRGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -206,12 +206,12 @@ static void SDL_Blit_XRGB8888_XRGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -320,12 +320,12 @@ static void SDL_Blit_XRGB8888_XRGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -391,12 +391,12 @@ static void SDL_Blit_XRGB8888_XBGR8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -477,12 +477,12 @@ static void SDL_Blit_XRGB8888_XBGR8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -570,12 +570,12 @@ static void SDL_Blit_XRGB8888_XBGR8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -684,12 +684,12 @@ static void SDL_Blit_XRGB8888_XBGR8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -755,12 +755,12 @@ static void SDL_Blit_XRGB8888_ARGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
const Uint32 A = 0xFF;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -841,12 +841,12 @@ static void SDL_Blit_XRGB8888_ARGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -939,12 +939,12 @@ static void SDL_Blit_XRGB8888_ARGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 pixel;
|
|
|
const Uint32 A = (flags & SDL_COPY_MODULATE_ALPHA) ? modulateA : 0xFF;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1054,12 +1054,12 @@ static void SDL_Blit_XRGB8888_ARGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1126,12 +1126,12 @@ static void SDL_Blit_XBGR8888_XRGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1212,12 +1212,12 @@ static void SDL_Blit_XBGR8888_XRGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1305,12 +1305,12 @@ static void SDL_Blit_XBGR8888_XRGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1419,12 +1419,12 @@ static void SDL_Blit_XBGR8888_XRGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1488,12 +1488,12 @@ static void SDL_Blit_XBGR8888_XRGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
|
|
|
static void SDL_Blit_XBGR8888_XBGR8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1571,12 +1571,12 @@ static void SDL_Blit_XBGR8888_XBGR8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1664,12 +1664,12 @@ static void SDL_Blit_XBGR8888_XBGR8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1778,12 +1778,12 @@ static void SDL_Blit_XBGR8888_XBGR8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1850,12 +1850,12 @@ static void SDL_Blit_XBGR8888_ARGB8888_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 pixel;
|
|
|
const Uint32 A = 0xFF;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -1937,12 +1937,12 @@ static void SDL_Blit_XBGR8888_ARGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2035,12 +2035,12 @@ static void SDL_Blit_XBGR8888_ARGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 pixel;
|
|
|
const Uint32 A = (flags & SDL_COPY_MODULATE_ALPHA) ? modulateA : 0xFF;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2150,12 +2150,12 @@ static void SDL_Blit_XBGR8888_ARGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2221,12 +2221,12 @@ static void SDL_Blit_XBGR8888_ARGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
static void SDL_Blit_ARGB8888_XRGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2314,12 +2314,12 @@ static void SDL_Blit_ARGB8888_XRGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2415,12 +2415,12 @@ static void SDL_Blit_ARGB8888_XRGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2530,12 +2530,12 @@ static void SDL_Blit_ARGB8888_XRGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2604,12 +2604,12 @@ static void SDL_Blit_ARGB8888_XBGR8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2698,12 +2698,12 @@ static void SDL_Blit_ARGB8888_XBGR8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2799,12 +2799,12 @@ static void SDL_Blit_ARGB8888_XBGR8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2914,12 +2914,12 @@ static void SDL_Blit_ARGB8888_XBGR8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -2986,12 +2986,12 @@ static void SDL_Blit_ARGB8888_XBGR8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
|
|
|
static void SDL_Blit_ARGB8888_ARGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3078,12 +3078,12 @@ static void SDL_Blit_ARGB8888_ARGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3185,12 +3185,12 @@ static void SDL_Blit_ARGB8888_ARGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateA = info->a;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B, A;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3304,12 +3304,12 @@ static void SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3378,12 +3378,12 @@ static void SDL_Blit_ARGB8888_ARGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
static void SDL_Blit_RGBA8888_XRGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3471,12 +3471,12 @@ static void SDL_Blit_RGBA8888_XRGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3572,12 +3572,12 @@ static void SDL_Blit_RGBA8888_XRGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3687,12 +3687,12 @@ static void SDL_Blit_RGBA8888_XRGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3761,12 +3761,12 @@ static void SDL_Blit_RGBA8888_XBGR8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3855,12 +3855,12 @@ static void SDL_Blit_RGBA8888_XBGR8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -3956,12 +3956,12 @@ static void SDL_Blit_RGBA8888_XBGR8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4071,12 +4071,12 @@ static void SDL_Blit_RGBA8888_XBGR8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4144,12 +4144,12 @@ static void SDL_Blit_RGBA8888_XBGR8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
static void SDL_Blit_RGBA8888_ARGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4238,12 +4238,12 @@ static void SDL_Blit_RGBA8888_ARGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4345,12 +4345,12 @@ static void SDL_Blit_RGBA8888_ARGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateA = info->a;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B, A;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4464,12 +4464,12 @@ static void SDL_Blit_RGBA8888_ARGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4539,12 +4539,12 @@ static void SDL_Blit_ABGR8888_XRGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4633,12 +4633,12 @@ static void SDL_Blit_ABGR8888_XRGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4734,12 +4734,12 @@ static void SDL_Blit_ABGR8888_XRGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4849,12 +4849,12 @@ static void SDL_Blit_ABGR8888_XRGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -4922,12 +4922,12 @@ static void SDL_Blit_ABGR8888_XRGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
static void SDL_Blit_ABGR8888_XBGR8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5015,12 +5015,12 @@ static void SDL_Blit_ABGR8888_XBGR8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5116,12 +5116,12 @@ static void SDL_Blit_ABGR8888_XBGR8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5231,12 +5231,12 @@ static void SDL_Blit_ABGR8888_XBGR8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5305,12 +5305,12 @@ static void SDL_Blit_ABGR8888_ARGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B, A;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5400,12 +5400,12 @@ static void SDL_Blit_ABGR8888_ARGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5507,12 +5507,12 @@ static void SDL_Blit_ABGR8888_ARGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateA = info->a;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B, A;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5626,12 +5626,12 @@ static void SDL_Blit_ABGR8888_ARGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5701,12 +5701,12 @@ static void SDL_Blit_BGRA8888_XRGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5795,12 +5795,12 @@ static void SDL_Blit_BGRA8888_XRGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -5896,12 +5896,12 @@ static void SDL_Blit_BGRA8888_XRGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -6011,12 +6011,12 @@ static void SDL_Blit_BGRA8888_XRGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -6084,12 +6084,12 @@ static void SDL_Blit_BGRA8888_XRGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
static void SDL_Blit_BGRA8888_XBGR8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -6177,12 +6177,12 @@ static void SDL_Blit_BGRA8888_XBGR8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -6278,12 +6278,12 @@ static void SDL_Blit_BGRA8888_XBGR8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateB = info->b;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -6393,12 +6393,12 @@ static void SDL_Blit_BGRA8888_XBGR8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -6467,12 +6467,12 @@ static void SDL_Blit_BGRA8888_ARGB8888_Scale(SDL_BlitInfo *info)
|
|
|
{
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B, A;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -6562,12 +6562,12 @@ static void SDL_Blit_BGRA8888_ARGB8888_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -6669,12 +6669,12 @@ static void SDL_Blit_BGRA8888_ARGB8888_Modulate_Scale(SDL_BlitInfo *info)
|
|
|
const Uint32 modulateA = info->a;
|
|
|
Uint32 pixel;
|
|
|
Uint32 R, G, B, A;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|
|
@@ -6788,12 +6788,12 @@ static void SDL_Blit_BGRA8888_ARGB8888_Modulate_Blend_Scale(SDL_BlitInfo *info)
|
|
|
Uint32 srcR, srcG, srcB, srcA;
|
|
|
Uint32 dstpixel;
|
|
|
Uint32 dstR, dstG, dstB, dstA;
|
|
|
- int srcy, srcx;
|
|
|
- Uint32 posy, posx;
|
|
|
- int incy, incx;
|
|
|
+ Uint64 srcy, srcx;
|
|
|
+ Uint64 posy, posx;
|
|
|
+ Uint64 incy, incx;
|
|
|
|
|
|
- incy = (info->src_h << 16) / info->dst_h;
|
|
|
- incx = (info->src_w << 16) / info->dst_w;
|
|
|
+ incy = ((Uint64)info->src_h << 16) / info->dst_h;
|
|
|
+ incx = ((Uint64)info->src_w << 16) / info->dst_w;
|
|
|
posy = incy / 2;
|
|
|
|
|
|
while (info->dst_h--) {
|