ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

dib32bppc.c
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         Win32 subsystem
00003  * LICENSE:         See COPYING in the top level directory
00004  * FILE:            subsystems/win32/win32k/dib/dib32bppc.c
00005  * PURPOSE:         C language equivalents of asm optimised 32bpp functions
00006  * PROGRAMMERS:     Jason Filby
00007  *                  Magnus Olsen
00008  */
00009 
00010 #include <win32k.h>
00011 
00012 #define NDEBUG
00013 #include <debug.h>
00014 
00015 VOID
00016 DIB_32BPP_HLine(SURFOBJ *SurfObj, LONG x1, LONG x2, LONG y, ULONG c)
00017 {
00018   PBYTE byteaddr = (PBYTE)((ULONG_PTR)SurfObj->pvScan0 + y * SurfObj->lDelta);
00019   PDWORD addr = (PDWORD)byteaddr + x1;
00020   LONG cx = x1;
00021 
00022   while(cx < x2)
00023   {
00024     *addr = (DWORD)c;
00025     ++addr;
00026     ++cx;
00027   }
00028 }
00029 
00030 BOOLEAN
00031 DIB_32BPP_ColorFill(SURFOBJ* DestSurface, RECTL* DestRect, ULONG color)
00032 {
00033   ULONG DestY;
00034 
00035   for (DestY = DestRect->top; DestY< DestRect->bottom; DestY++)
00036   {
00037     DIB_32BPP_HLine (DestSurface, DestRect->left, DestRect->right, DestY, color);
00038   }
00039 
00040   return TRUE;
00041 }

Generated on Sat May 26 2012 04:36:59 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.