Skip to content

Call calculator - #36

Merged
laser-shark merged 4 commits into
masterfrom
call-calculator
May 27, 2020
Merged

Call calculator#36
laser-shark merged 4 commits into
masterfrom
call-calculator

Conversation

@laser-shark

Copy link
Copy Markdown
Collaborator

This calls the Backend Calculator with the text that the user enters and displays the current Memory.

@laser-shark
laser-shark requested a review from ColdIV May 26, 2020 20:54

@ColdIV ColdIV left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(GUI)
When I enter many numbers the border around the output will disappear.
The last 2 numbers will overlap the border.

(Error output) I do not receive any error messages. (For rubbish input like abcd or for math errors like 5/0) Maybe we should add an extra window for displaying errors?

Those errors are GUI related, so feel free to merge this PR.
I will add an issue for those new problems and assign you.

Comment thread gui/render_text.cpp
// helper variables
int textW = xEnd - xStart;
int textH = yEnd - yStart;
int lineHeight = fontSize * 1.4; // determine space between lines

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could put stuff like this in a config file so that we can modify the graphics by fiddling with the config instead of roaming through the source... (Same would go for colors and so on)
But I would consider that an improvement for later (probably never?)

@ColdIV ColdIV mentioned this pull request May 27, 2020
@laser-shark
laser-shark merged commit 86f4ea3 into master May 27, 2020
@laser-shark
laser-shark deleted the call-calculator branch May 27, 2020 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants