~lidaobing/+junk/zhcon

« back to all changes in this revision

Viewing changes to src/display/fblinear4.h

  • Committer: LI Daobing
  • Date: 2008-11-04 04:39:18 UTC
  • Revision ID: lidaobing@gmail.com-20081104043918-nfwwvgfb0uied0mt
importĀ 1:0.2.6-5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// vi:ts=4:shiftwidth=4:expandtab
 
2
/***************************************************************************
 
3
                          fblinear4.h  -  description
 
4
                             -------------------
 
5
    begin                : Fri July 20 2001
 
6
    copyright            : (C) 2001 by ejoy, huyong
 
7
    email                : ejoy@users.sourceforge.net
 
8
                           ccpaging@online.sh.cn
 
9
 ***************************************************************************/
 
10
 
 
11
/***************************************************************************
 
12
 *                                                                         *
 
13
 *   This program is free software; you can redistribute it and/or modify  *
 
14
 *   it under the terms of the GNU General Public License as published by  *
 
15
 *   the Free Software Foundation; either version 2 of the License, or     *
 
16
 *   (at your option) any later version.                                   *
 
17
 *                                                                         *
 
18
 ***************************************************************************/
 
19
 
 
20
#ifndef FBLINEAR4_H
 
21
#define FBLINEAR4_H
 
22
 
 
23
#include "fbdev.h"
 
24
 
 
25
/**
 
26
 *@author huyong
 
27
 */
 
28
class FBLinear4 : public FBDev {
 
29
    public:
 
30
        FBLinear4();
 
31
 
 
32
        void PutPixel(int x,int y,int color);
 
33
        void FillRect(int x1,int y1,int x2,int y2,int color);
 
34
        void DrawChar(int x,int y,int fg,int bg,struct CharBitMap* pFont);
 
35
 
 
36
    private:
 
37
        void InitColorMap();
 
38
        static __u16 nibbletab_cfb4[];
 
39
};
 
40
 
 
41
#endif