Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
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
MyCard
ygopro
Commits
1a8d5a33
Commit
1a8d5a33
authored
Jun 03, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set max to LEN_CHAT_MSG - 1
parent
124269e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
gframe/game.cpp
gframe/game.cpp
+2
-2
gframe/game.h
gframe/game.h
+0
-2
No files found.
gframe/game.cpp
View file @
1a8d5a33
...
...
@@ -982,8 +982,8 @@ bool Game::Initialize() {
col
.
setAlpha
(
224
);
env
->
getSkin
()
->
setColor
((
EGUI_DEFAULT_COLOR
)
i
,
col
);
}
for
(
auto
it
=
editbox_list
.
begin
();
it
!=
editbox_list
.
end
();
++
i
t
)
(
*
it
)
->
setMax
(
MAX_INPUT_LENGTH
);
for
(
auto
ptr
:
editbox_lis
t
)
ptr
->
setMax
(
LEN_CHAT_MSG
-
1
);
dimension2du
size
=
driver
->
getScreenSize
();
if
(
window_size
!=
size
)
{
window_size
=
size
;
...
...
gframe/game.h
View file @
1a8d5a33
...
...
@@ -604,8 +604,6 @@ extern Game* mainGame;
#define SIZE_QUERY_BUFFER 0x4000
#define MAX_INPUT_LENGTH 256
#define CARD_IMG_WIDTH 177
#define CARD_IMG_HEIGHT 254
#define CARD_THUMB_WIDTH 44
...
...
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