Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
2ef38969
Commit
2ef38969
authored
Oct 03, 2019
by
kenan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x,y
parent
74b70f52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+4
-3
Classes/gframe/game.h
Classes/gframe/game.h
+3
-1
No files found.
Classes/gframe/game.cpp
View file @
2ef38969
...
...
@@ -64,8 +64,9 @@ bool Game::Initialize() {
int
w
=
1024.0
*
xScale
;
int
h
=
640.0
*
yScale
;
params
.
WindowSize
=
irr
::
core
::
dimension2d
<
u32
>
(
0
,
0
);
params
.
WindowLeft
=
(
screenH
-
w
)
/
2.0
;
params
.
WindowTop
=
(
screenW
-
h
)
/
2.0
;
//每一个元素得left和top都需要改
xStart
=
(
screenH
-
w
)
/
2.0
;
yStart
=
(
screenW
-
h
)
/
2.0
;
#else
if
(
gameConf
.
use_d3d
)
params
.
DriverType
=
irr
::
video
::
EDT_DIRECT3D9
;
...
...
@@ -95,7 +96,7 @@ bool Game::Initialize() {
* yScale = android::getScreenHeight(app) / 640.0;
* }//start ygocore when mobile is in landscape mode, or using Android tablets or TV.*/
char
log_scale
[
256
]
=
{
0
};
sprintf
(
log_scale
,
"xScale = %f, yScale = %f
"
,
xScale
,
yScale
);
sprintf
(
log_scale
,
"xScale = %f, yScale = %f
, xStart=%f, yStart=%f"
,
xScale
,
yScale
,
xStart
,
yStart
);
Printer
::
log
(
log_scale
);
//io::path databaseDir = options->getDBDir();
io
::
path
workingDir
=
options
->
getWorkDir
();
...
...
Classes/gframe/game.h
View file @
2ef38969
...
...
@@ -528,7 +528,9 @@ public:
//cancel or finish
irr
::
gui
::
IGUIButton
*
btnCancelOrFinish
;
float
xScale
;
float
yScale
;
float
yScale
;
float
xStart
;
float
yStart
;
IYGOSoundEffectPlayer
*
soundEffectPlayer
;
#ifdef _IRR_ANDROID_PLATFORM_
ANDROID_APP
appMain
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment