| version 1.26 | | version 1.27 |
|---|
| | |
| int w1,h1; | | int w1,h1; |
| // w1=w;h1=h; | | // w1=w;h1=h; |
| w1=grd_curscreen->sc_w;h1=grd_curscreen->sc_h; | | w1=grd_curscreen->sc_w;h1=grd_curscreen->sc_h; |
| if (w1*h1*4>OGLTEXBUFSIZE) | | if (w1*h1*3>OGLTEXBUFSIZE) |
| Error("ogl_ubitblt_tolinear: screen res larger than OGLTEXBUFSIZE\n"); | | Error("ogl_ubitblt_tolinear: screen res larger than OGLTEXBUFSIZE\n"); |
| | | |
| if (ogl_readpixels_ok>0){ | | if (ogl_readpixels_ok>0){ |
| | |
| #else | | #else |
| int i,j,c=0; | | int i,j,c=0; |
| unsigned char *d,*s,*e; | | unsigned char *d,*s,*e; |
| if (w*h*4>OGLTEXBUFSIZE) | | if (w*h*3>OGLTEXBUFSIZE) |
| Error("ogl_ubitblt_tolinear: size larger than OGLTEXBUFSIZE\n"); | | Error("ogl_ubitblt_tolinear: size larger than OGLTEXBUFSIZE\n"); |
| sx+=src->bm_x; | | sx+=src->bm_x; |
| sy+=src->bm_y; | | sy+=src->bm_y; |