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
48c0bbf6
Commit
48c0bbf6
authored
Oct 04, 2019
by
kenan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opt code
parent
28f0198d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
17 deletions
+9
-17
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+6
-5
irrlicht/include/SIrrCreationParameters.h
irrlicht/include/SIrrCreationParameters.h
+0
-6
irrlicht/source/Irrlicht/Android/CIrrDeviceAndroid.cpp
irrlicht/source/Irrlicht/Android/CIrrDeviceAndroid.cpp
+2
-2
irrlicht/source/Irrlicht/Android/CIrrDeviceAndroid.h
irrlicht/source/Irrlicht/Android/CIrrDeviceAndroid.h
+0
-2
mobile/build.gradle
mobile/build.gradle
+1
-2
No files found.
Classes/gframe/game.cpp
View file @
48c0bbf6
...
...
@@ -61,12 +61,13 @@ bool Game::Initialize() {
params
.
Bits
=
24
;
params
.
ZBufferBits
=
16
;
params
.
AntiAlias
=
0
;
int
w
=
1024.0
*
xScale
;
int
h
=
640.0
*
yScale
;
params
.
WindowSize
=
irr
::
core
::
dimension2d
<
u32
>
(
0
,
0
);
int
w
=
(
int
)(
1024.0
*
xScale
)
;
int
h
=
(
int
)(
640.0
*
yScale
)
;
params
.
WindowSize
=
irr
::
core
::
dimension2d
<
u32
>
(
w
,
h
);
//每一个元素得left和top都需要改
xStart
=
(
screenH
-
w
)
/
2.0
;
yStart
=
(
screenW
-
h
)
/
2.0
;
xStart
=
(
float
)((
screenH
-
w
)
/
2.0
);
yStart
=
(
float
)((
screenW
-
h
)
/
2.0
);
params
.
WindowPosition
=
core
::
position2di
((
s32
)
xStart
,
(
s32
)
yStart
);
#else
if
(
gameConf
.
use_d3d
)
params
.
DriverType
=
irr
::
video
::
EDT_DIRECT3D9
;
...
...
irrlicht/include/SIrrCreationParameters.h
View file @
48c0bbf6
...
...
@@ -51,8 +51,6 @@ namespace irr
UsePerformanceTimer
(
true
),
SDK_version_do_not_use
(
IRRLICHT_SDK_VERSION
),
PrivateData
(
0
),
WindowLeft
(
0
),
WindowTop
(
0
),
#ifdef _IRR_COMPILE_WITH_IPHONE_DEVICE_
OGLES2ShaderPath
(
""
)
#elif defined(_IRR_ANDROID_PLATFORM_)
...
...
@@ -119,10 +117,6 @@ namespace irr
//! Size of the window or the video mode in fullscreen mode. Default: 800x600
core
::
dimension2d
<
u32
>
WindowSize
;
int
WindowLeft
;
int
WindowTop
;
//! Position of the window on-screen. Default: (-1, -1) or centered.
core
::
position2di
WindowPosition
;
...
...
irrlicht/source/Irrlicht/Android/CIrrDeviceAndroid.cpp
View file @
48c0bbf6
...
...
@@ -38,7 +38,7 @@ CIrrDeviceAndroid::CIrrDeviceAndroid(const SIrrlichtCreationParameters& param)
#ifdef _DEBUG
setDebugName
(
"CIrrDeviceAndroid"
);
#endif
startPoint
=
core
::
position2di
(
param
.
WindowLeft
,
param
.
WindowTop
);
// Get the interface to the native Android activity.
Android
=
(
ANDROID_APP
)(
param
.
PrivateData
);
...
...
@@ -189,7 +189,7 @@ void CIrrDeviceAndroid::restoreWindow()
core
::
position2di
CIrrDeviceAndroid
::
getWindowPosition
()
{
return
startPoint
;
return
core
::
position2di
(
0
,
0
)
;
}
E_DEVICE_TYPE
CIrrDeviceAndroid
::
getType
()
const
...
...
irrlicht/source/Irrlicht/Android/CIrrDeviceAndroid.h
View file @
48c0bbf6
...
...
@@ -76,8 +76,6 @@ namespace irr
bool
Initialized
;
bool
Paused
;
core
::
position2di
startPoint
;
JNIEnv
*
JNIEnvAttachedToVM
;
video
::
SExposedVideoData
ExposedVideoData
;
...
...
mobile/build.gradle
View file @
48c0bbf6
...
...
@@ -79,8 +79,7 @@ repositories {
}
dependencies
{
implementation
'junit:junit:4.12'
debugImplementation
project
(
':libygo'
)
releaseImplementation
project
(
':libcore'
)
implementation
project
(
':libcore'
)
//support-annotations,support-vector-drawable
// implementation 'com.android.support:appcompat-v7:' + rootProject.ext.supportVersion
// implementation 'com.android.support:recyclerview-v7:' + rootProject.ext.supportVersion
...
...
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