Patent ID: 6992677

Claim:
A method for accelerating 2D graphics in a computer system, the computer system including a graphic chip having a command register to execute graphic commands, each graphic command carrying out an operation on a source pixel, pattern or destination pixel, the computer system using a graphic device interface (GDI) to transfer corresponding a graphic command to a 2D graphic device driver, the 2D graphic device driver setting the command register of the graphic chip based on the graphic command transferred by the graphic device interface (GDI) such that the graphic chip performs the graphic command with respect to the command register set by the 2D graphic device driver, the method comprising: a graphic command receiving step, which uses the 2D graphic device driver to receive a ROP3 command from the graphic device interface (GDI); a graphic command determining step, which uses the 2D graphic device driver to determine whether a source pixel and a pattern of the ROP3 command are both colored; a copying step, which performs a copy procedure for copying memory corresponding to the source pixel or the pattern, and converting and expanding its color when the source pixel and the pattern are both colored; and after the copying step, a graphic command executing step, which uses the 2D graphic device driver to set the command register of the graphic chip for executing the ROP3 command according to the copied source pixel or pattern, the original source pixel or pattern, and the destination pixel.