Changeset 917


Ignore:
Timestamp:
Apr 26, 2006, 8:53:08 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed indentation. I did it myself, I'm a big boy.
Location:
libcaca/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cxx/caca++.cpp

    r899 r917  
    9393void Caca::setMouse(int v)
    9494{
    95      caca_set_mouse(dp, v);
     95    caca_set_mouse(dp, v);
    9696}
    9797
  • libcaca/trunk/cxx/caca++.h

    r899 r917  
    3131{
    3232    friend class Caca;
    33   public:
     33 public:
    3434    enum caca_event_type
    35     {
    36         CACA_EVENT_NONE =          0x0000, /**< No event. */
     35        {
     36            CACA_EVENT_NONE =          0x0000, /**< No event. */
    3737
    38         CACA_EVENT_KEY_PRESS =     0x0001, /**< A key was pressed. */
    39         CACA_EVENT_KEY_RELEASE =   0x0002, /**< A key was released. */
    40         CACA_EVENT_MOUSE_PRESS =   0x0004, /**< A mouse button was pressed. */
    41         CACA_EVENT_MOUSE_RELEASE = 0x0008, /**< A mouse button was released. */
    42         CACA_EVENT_MOUSE_MOTION =  0x0010, /**< The mouse was moved. */
    43         CACA_EVENT_RESIZE =        0x0020, /**< The window was resized. */
     38            CACA_EVENT_KEY_PRESS =     0x0001, /**< A key was pressed. */
     39            CACA_EVENT_KEY_RELEASE =   0x0002, /**< A key was released. */
     40            CACA_EVENT_MOUSE_PRESS =   0x0004, /**< A mouse button was pressed. */
     41            CACA_EVENT_MOUSE_RELEASE = 0x0008, /**< A mouse button was released. */
     42            CACA_EVENT_MOUSE_MOTION =  0x0010, /**< The mouse was moved. */
     43            CACA_EVENT_RESIZE =        0x0020, /**< The window was resized. */
    4444
    45         CACA_EVENT_ANY =           0xffff  /**< Bitmask for any event. */
    46     } type;
     45            CACA_EVENT_ANY =           0xffff  /**< Bitmask for any event. */
     46        } type;
    4747
    48   protected:
     48 protected:
    4949    caca_event e;
    5050};
     
    5252class Caca
    5353{
    54   public:
     54 public:
    5555    Caca();
    5656    Caca(Cucul *cv);
     
    7070    void setMouse(int);
    7171
    72   private:
     72 private:
    7373    caca_display_t *dp;
    7474};
  • libcaca/trunk/cxx/cucul++.h

    r899 r917  
    3939    unsigned int getHeight();
    4040    void renderCanvas(Cucul *, unsigned char *, unsigned int, unsigned int, unsigned int);
    41 
     41   
    4242 private:
    4343    cucul_font *font;
    44 
     44   
    4545};
    4646
     
    9393    friend class Font;
    9494    friend class Buffer;
    95   public:
     95 public:
    9696    Cucul();
    9797    Cucul(int width, int height);
     
    129129    int Rand(int, int);
    130130
    131   protected:
     131 protected:
    132132    cucul_canvas_t *get_cucul_canvas_t();
    133133
    134   private:
     134 private:
    135135    cucul_canvas_t *cv;
    136136};
  • libcaca/trunk/src/cacadraw.c

    r905 r917  
    9191                    case CACA_KEY_UP: y--; refresh = 1; goto stopevents;
    9292                    case CACA_KEY_DOWN: y++; refresh = 1; goto stopevents;
    93                     case CACA_KEY_PAGEUP: y-=25; refresh = 1; goto stopevents;
    94                     case CACA_KEY_PAGEDOWN: y+=25; refresh = 1; goto stopevents;
     93                    case CACA_KEY_PAGEUP: y-=25; refresh = 1; goto stopevents;
     94                    case CACA_KEY_PAGEDOWN: y+=25; refresh = 1; goto stopevents;
    9595                    case CACA_KEY_ESCAPE:
    9696                    case 'q':
Note: See TracChangeset for help on using the changeset viewer.