63 |
private: |
private: |
64 |
|
|
65 |
// the color we want to draw the lines with |
// the color we want to draw the lines with |
66 |
SDL_Color my_color; |
PG_Color my_color; |
67 |
|
|
68 |
int tickstate; |
int tickstate; |
69 |
}; |
}; |
120 |
tickstate = 1; |
tickstate = 1; |
121 |
} |
} |
122 |
else if (tickstate == 1) { |
else if (tickstate == 1) { |
123 |
DrawHLine(0, my_height/2, my_width-1, my_color.r, my_color.g, my_color.b); |
DrawHLine(0, my_height/2, my_width-1, my_color); |
124 |
tickstate = 0; |
tickstate = 0; |
125 |
} |
} |
126 |
} |
} |
150 |
private: |
private: |
151 |
|
|
152 |
// the color we want to draw the lines with |
// the color we want to draw the lines with |
153 |
SDL_Color my_color; |
PG_Color my_color; |
154 |
|
|
155 |
int tickstate; |
int tickstate; |
156 |
}; |
}; |
194 |
); |
); |
195 |
} |
} |
196 |
|
|
197 |
SDL_Color temp_color; |
PG_Color temp_color; |
198 |
PG_Rect temp_rect; |
PG_Rect temp_rect; |
199 |
Uint32 temp_int; |
Uint32 temp_int; |
200 |
|
|
207 |
temp_color.g = (my_color.g * tickstate)/40; |
temp_color.g = (my_color.g * tickstate)/40; |
208 |
temp_color.b = (my_color.b * tickstate)/40; |
temp_color.b = (my_color.b * tickstate)/40; |
209 |
|
|
210 |
temp_int = SDL_MapRGB(my_srfScreen->format, temp_color.r, temp_color.g, temp_color.b); |
temp_int = temp_color.MapRGB(my_srfScreen->format); |
211 |
SDL_FillRect(my_srfScreen, (SDL_Rect *)&temp_rect, temp_int); |
SDL_FillRect(my_srfScreen, (SDL_Rect *)&temp_rect, temp_int); |
212 |
} |
} |
213 |
|
|