Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Gaz

Pages: [1]
1
General / Android troubles
« on: January 25, 2018, 02:52:53 am »
So I managed to build the Android SFML libs, and got the example to work. Afterwards I tried to compile my own project, a small memory card game, and to my surprise everything went suprisingly smooth except for a few necessary changes that were easily fixed. Didn't expect it for an experimental build to actually work so well!

However I did find just one small problem (apart from the minimizing/maximizing thing) , and as I don't know anything about java I'm not sure if it's because my layout may be set up wrongly or is it due to SFML in some way. Here are some pictures:



Over here the view looks like it's fullscreen, but it's actually fullscreen and zoomed in/stretched, as my card clickboxes are left of the cards and not on the cards themselves, the first clickbox is just a few pixes switched to the left, while the last card in the row has a clickbox that's shifted left by more than half a card.

Sometimes, when I minimize then open the game again(I recreate the window on sf::Event::MouseEntered) I get this:



The cards are now in their proper position and the clickboxes are also where they're supposed to be, even though there's an ugly black bar below the game it's functional now.

Now I'd like to know if anyone knows the reason behind this and if it can be fixed?

The game works on all other platforms(any resolution) properly

Best,

Pages: [1]
anything