mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:36:04 +00:00
Reverted my last change!
svn path=/trunk/; revision=7199
This commit is contained in:
parent
aded67d27d
commit
86308e6a22
3 changed files with 9 additions and 9 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib16bpp.c,v 1.16 2003/12/23 19:15:08 navaraf Exp $ */
|
/* $Id: dib16bpp.c,v 1.17 2003/12/23 19:28:23 navaraf Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -398,7 +398,7 @@ void ScaleLineAvg16(PIXEL *Target, PIXEL *Source, int SrcWidth, int TgtWidth)
|
||||||
int skip;
|
int skip;
|
||||||
PIXEL p;
|
PIXEL p;
|
||||||
|
|
||||||
skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / ((2*SrcWidth) + 1));
|
skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / (2*SrcWidth) + 1);
|
||||||
NumPixels -= skip;
|
NumPixels -= skip;
|
||||||
|
|
||||||
while (NumPixels-- > 0) {
|
while (NumPixels-- > 0) {
|
||||||
|
@ -431,7 +431,7 @@ void ScaleRectAvg16(PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight,
|
||||||
PIXEL *PrevSource = NULL;
|
PIXEL *PrevSource = NULL;
|
||||||
PIXEL *PrevSourceAhead = NULL;
|
PIXEL *PrevSourceAhead = NULL;
|
||||||
|
|
||||||
skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / ((2*SrcHeight) + 1));
|
skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / (2*SrcHeight) + 1);
|
||||||
NumPixels -= skip;
|
NumPixels -= skip;
|
||||||
|
|
||||||
ScanLine = (PIXEL*)ExAllocatePool(NonPagedPool, TgtWidth*sizeof(PIXEL)); // FIXME: Should we use PagedPool here?
|
ScanLine = (PIXEL*)ExAllocatePool(NonPagedPool, TgtWidth*sizeof(PIXEL)); // FIXME: Should we use PagedPool here?
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib32bpp.c,v 1.10 2003/12/23 19:15:08 navaraf Exp $ */
|
/* $Id: dib32bpp.c,v 1.11 2003/12/23 19:28:23 navaraf Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -314,7 +314,7 @@ void ScaleLineAvg32(PIXEL *Target, PIXEL *Source, int SrcWidth, int TgtWidth)
|
||||||
int skip;
|
int skip;
|
||||||
PIXEL p;
|
PIXEL p;
|
||||||
|
|
||||||
skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / ((2*SrcWidth) + 1));
|
skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / (2*SrcWidth) + 1);
|
||||||
NumPixels -= skip;
|
NumPixels -= skip;
|
||||||
|
|
||||||
while (NumPixels-- > 0) {
|
while (NumPixels-- > 0) {
|
||||||
|
@ -347,7 +347,7 @@ void ScaleRectAvg32(PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight,
|
||||||
PIXEL *PrevSource = NULL;
|
PIXEL *PrevSource = NULL;
|
||||||
PIXEL *PrevSourceAhead = NULL;
|
PIXEL *PrevSourceAhead = NULL;
|
||||||
|
|
||||||
skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / ((2*SrcHeight) + 1));
|
skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / (2*SrcHeight) + 1);
|
||||||
NumPixels -= skip;
|
NumPixels -= skip;
|
||||||
|
|
||||||
ScanLine = (PIXEL*)ExAllocatePool(NonPagedPool, TgtWidth*sizeof(PIXEL)); // FIXME: Should we use PagedPool here?
|
ScanLine = (PIXEL*)ExAllocatePool(NonPagedPool, TgtWidth*sizeof(PIXEL)); // FIXME: Should we use PagedPool here?
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib8bpp.c,v 1.11 2003/12/23 19:15:08 navaraf Exp $ */
|
/* $Id: dib8bpp.c,v 1.12 2003/12/23 19:28:23 navaraf Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -369,7 +369,7 @@ void ScaleLineAvg8(PIXEL *Target, PIXEL *Source, int SrcWidth, int TgtWidth)
|
||||||
int skip;
|
int skip;
|
||||||
PIXEL p;
|
PIXEL p;
|
||||||
|
|
||||||
skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / ((2*SrcWidth) + 1));
|
skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / (2*SrcWidth) + 1);
|
||||||
NumPixels -= skip;
|
NumPixels -= skip;
|
||||||
|
|
||||||
while (NumPixels-- > 0) {
|
while (NumPixels-- > 0) {
|
||||||
|
@ -402,7 +402,7 @@ void ScaleRectAvg8(PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight,
|
||||||
PIXEL *PrevSource = NULL;
|
PIXEL *PrevSource = NULL;
|
||||||
PIXEL *PrevSourceAhead = NULL;
|
PIXEL *PrevSourceAhead = NULL;
|
||||||
|
|
||||||
skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / ((2*SrcHeight) + 1));
|
skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / (2*SrcHeight) + 1);
|
||||||
NumPixels -= skip;
|
NumPixels -= skip;
|
||||||
|
|
||||||
ScanLine = (PIXEL*)ExAllocatePool(NonPagedPool, TgtWidth*sizeof(PIXEL)); // FIXME: Should we use PagedPool here?
|
ScanLine = (PIXEL*)ExAllocatePool(NonPagedPool, TgtWidth*sizeof(PIXEL)); // FIXME: Should we use PagedPool here?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue