Skip to content

Commit

Permalink
Editor/Palette Manager: fix misspelled function
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed May 2, 2017
1 parent fc204ea commit f2705ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/editor/palette/palette_manager.cpp
Expand Up @@ -47,7 +47,7 @@ void palette_manager::set_group(size_t index)

void palette_manager::adjust_size()
{
resrote_palete_bg(false);
restore_palette_bg(false);
const SDL_Rect& rect = gui_.palette_area();
set_location(rect);
palette_start_ = rect.y;
Expand Down Expand Up @@ -92,10 +92,10 @@ void palette_manager::scroll_up()

void palette_manager::scroll_top()
{
resrote_palete_bg(true);
restore_palette_bg(true);
}

void palette_manager::resrote_palete_bg(bool scroll_top)
void palette_manager::restore_palette_bg(bool scroll_top)
{
const SDL_Rect rect = gui_.palette_area();
if (scroll_top) {
Expand Down
2 changes: 1 addition & 1 deletion src/editor/palette/palette_manager.hpp
Expand Up @@ -50,7 +50,7 @@ class palette_manager : public gui::widget {
bool can_scroll_down();

void scroll_top();
void resrote_palete_bg(bool scroll_top);
void restore_palette_bg(bool scroll_top);
void scroll_bottom();

//TODO
Expand Down

0 comments on commit f2705ab

Please sign in to comment.