Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tome
Tales of MajEyal
Commits
c2b24494
Commit
c2b24494
authored
13 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
oups
git-svn-id:
http://svn.net-core.org/repos/t-engine4@4947
51575b47-30f0-44d4-a5cc-537603b46e54
parent
915efe09
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/core_lua.c
+2
-2
2 additions, 2 deletions
src/core_lua.c
src/main.c
+1
-1
1 addition, 1 deletion
src/main.c
src/main.h
+1
-1
1 addition, 1 deletion
src/main.h
with
4 additions
and
4 deletions
src/core_lua.c
+
2
−
2
View file @
c2b24494
...
...
@@ -1797,9 +1797,9 @@ static int sdl_set_window_size(lua_State *L)
{
int
w
=
luaL_checknumber
(
L
,
1
);
int
h
=
luaL_checknumber
(
L
,
2
);
int
fullscreen
=
lua_to
number
(
L
,
3
);
bool
fullscreen
=
lua_to
boolean
(
L
,
3
);
printf
(
"Setting resolution to %dx%d (%s)
\n
"
,
w
,
h
,
(
fullscreen
==
2
)
?
"fakefull"
:
((
fullscreen
)
?
"fullscreen"
:
"windowed"
);
printf
(
"Setting resolution to %dx%d (%s)
\n
"
,
w
,
h
,
fullscreen
?
"fullscreen"
:
"windowed"
);
do_resize
(
w
,
h
,
fullscreen
);
lua_pushboolean
(
L
,
TRUE
);
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
1
−
1
View file @
c2b24494
...
...
@@ -743,7 +743,7 @@ void do_resize(int w, int h, bool fullscreen)
if
(
!
window
)
{
window
=
SDL_CreateWindow
(
"TE4"
,
0
,
0
,
w
,
h
,
SDL_WINDOW_SHOWN
|
SDL_WINDOW_OPENGL
|
SDL_WINDOW_
BORDERLESS
);
window
=
SDL_CreateWindow
(
"TE4"
,
0
,
0
,
w
,
h
,
SDL_WINDOW_SHOWN
|
SDL_WINDOW_OPENGL
|
SDL_WINDOW_
RESIZABLE
|
(
fullscreen
?
SDL_WINDOW_FULLSCREEN
:
0
)
);
if
(
window
==
NULL
)
{
printf
(
"error opening screen: %s
\n
"
,
SDL_GetError
());
exit
(
1
);
...
...
This diff is collapsed.
Click to expand it.
src/main.h
+
1
−
1
View file @
c2b24494
...
...
@@ -34,7 +34,7 @@
#endif
extern
int
resizeWindow
(
int
width
,
int
height
);
extern
void
do_resize
(
int
w
,
int
h
,
int
fullscreen
);
extern
void
do_resize
(
int
w
,
int
h
,
bool
fullscreen
);
extern
void
setupRealtime
(
float
freq
);
extern
void
setupDisplayTimer
(
int
fps
);
extern
int
docall
(
lua_State
*
L
,
int
narg
,
int
nret
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment