/+junk/c_sdl_joypad_ducktape

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad_ducktape

« back to all changes in this revision

Viewing changes to src/GameButton.c

  • Committer: Gustav Hartvigsson
  • Date: 2014-06-15 21:16:13 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140615211613-39t3ux5wos87omj0
* Switched variable names to something more consistant
* added two more files

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  self->hover = NULL;
28
28
  self->is_hover = false;
29
29
  self->is_stop_hover = false;
30
 
  self->colour = game_color_create_color (0,0,255,255);
 
30
  self->color = game_color_create_color (0,0,255,255);
31
31
  return self;
32
32
}
33
33
 
125
125
}
126
126
 
127
127
void game_button_draw (GameButton * self, SDL_Renderer * renderer) {
128
 
  SDL_Color oc = game_color_set_draw_color (renderer, self->colour);
 
128
  SDL_Color oc = game_color_set_draw_color (renderer, self->color);
129
129
  if (self->fill) {
130
130
    SDL_RenderFillRect (renderer , (SDL_Rect *) self);
131
131
  } else {