Skip to content

Commit

Permalink
Version number to 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranmillar committed Nov 28, 2017
1 parent 1be5622 commit 19b08aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
3 changes: 1 addition & 2 deletions src/Editor/bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ void Bar::draw( void )

void Bar::drawButton(const buttonInfo & button, buttonState state, int x, int y)
{

SDL_Rect sourceRect;
if (state == off)
{
Expand All @@ -367,4 +366,4 @@ void Bar::drawButton(const buttonInfo & button, buttonState state, int x, int y)
destRect.h = 32;

SDL_RenderCopy(window_ptr->screen_renderer, buttonTexture, &sourceRect, &destRect);
}
}
9 changes: 3 additions & 6 deletions src/Editor/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,16 +545,13 @@ void Editor_input::handleEvents(SDL_Event event)

//Only draw if time between this frame and last was neither too long nor too short
Uint32 ticksSinceLastFrame = SDL_GetTicks() - editor_ptr->gameFrameTick;
if (ticksSinceLastFrame <= 35 && ticksSinceLastFrame >= 30)
editor_ptr->gameFrameTick = SDL_GetTicks();
if (ticksSinceLastFrame <= 36 && ticksSinceLastFrame >= 30)
{
editor_ptr->gameFrameTick = SDL_GetTicks();
canvas_ptr->draw();
bar_ptr->draw();
}
else
{
editor_ptr->gameFrameTick = SDL_GetTicks();
}
//SDL_Log("Frame: %d", ticksSinceLastFrame);

SDL_SetRenderTarget(window_ptr->screen_renderer, NULL);
SDL_RenderCopy(window_ptr->screen_renderer, window_ptr->screen_texture, NULL, NULL);
Expand Down
7 changes: 2 additions & 5 deletions src/lem3edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,11 @@
using namespace std;

const char *prog_name = "lem3edit";
const char *prog_ver = "0.6.1";
const char *prog_date = "25/11/2017";
const char *prog_ver = "0.7";
const char *prog_date = "28/11/2017";

void version(void);

signed int snap( signed int &value, unsigned int snap );



programMode g_currentMode;

Expand Down

0 comments on commit 19b08aa

Please sign in to comment.