Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
bbb396d7
There was an error fetching the commit references. Please try again later.
Commit
bbb396d7
authored
6 years ago
by
ReinUsesLisp
Browse files
Options
Downloads
Patches
Plain Diff
bootmanager: Bypass resizing issue
parent
9ff72ca9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/yuzu/bootmanager.cpp
+12
-7
12 additions, 7 deletions
src/yuzu/bootmanager.cpp
with
12 additions
and
7 deletions
src/yuzu/bootmanager.cpp
+
12
−
7
View file @
bbb396d7
...
@@ -371,14 +371,23 @@ void GRenderWindow::InitRenderTarget() {
...
@@ -371,14 +371,23 @@ void GRenderWindow::InitRenderTarget() {
child
=
new
GGLWidgetInternal
(
this
,
shared_context
.
get
());
child
=
new
GGLWidgetInternal
(
this
,
shared_context
.
get
());
container
=
QWidget
::
createWindowContainer
(
child
,
this
);
container
=
QWidget
::
createWindowContainer
(
child
,
this
);
QBoxLayout
*
layout
=
new
QHBoxLayout
(
this
);
QBoxLayout
*
layout
=
new
QHBoxLayout
(
this
);
layout
->
addWidget
(
container
);
layout
->
setMargin
(
0
);
setLayout
(
layout
);
// Reset minimum size to avoid unwanted resizes when this function is called for a second time.
setMinimumSize
(
1
,
1
);
// Show causes the window to actually be created and the OpenGL context as well, but we don't
// want the widget to be shown yet, so immediately hide it.
show
();
hide
();
resize
(
Layout
::
ScreenUndocked
::
Width
,
Layout
::
ScreenUndocked
::
Height
);
resize
(
Layout
::
ScreenUndocked
::
Width
,
Layout
::
ScreenUndocked
::
Height
);
child
->
resize
(
Layout
::
ScreenUndocked
::
Width
,
Layout
::
ScreenUndocked
::
Height
);
child
->
resize
(
Layout
::
ScreenUndocked
::
Width
,
Layout
::
ScreenUndocked
::
Height
);
container
->
resize
(
Layout
::
ScreenUndocked
::
Width
,
Layout
::
ScreenUndocked
::
Height
);
container
->
resize
(
Layout
::
ScreenUndocked
::
Width
,
Layout
::
ScreenUndocked
::
Height
);
layout
->
addWidget
(
container
);
layout
->
setMargin
(
0
);
setLayout
(
layout
);
OnMinimalClientAreaChangeRequest
(
GetActiveConfig
().
min_client_area_size
);
OnMinimalClientAreaChangeRequest
(
GetActiveConfig
().
min_client_area_size
);
...
@@ -386,10 +395,6 @@ void GRenderWindow::InitRenderTarget() {
...
@@ -386,10 +395,6 @@ void GRenderWindow::InitRenderTarget() {
NotifyClientAreaSizeChanged
(
std
::
pair
<
unsigned
,
unsigned
>
(
child
->
width
(),
child
->
height
()));
NotifyClientAreaSizeChanged
(
std
::
pair
<
unsigned
,
unsigned
>
(
child
->
width
(),
child
->
height
()));
BackupGeometry
();
BackupGeometry
();
// show causes the window to actually be created and the gl context as well
show
();
// but we don't want the widget to be shown yet, so immediately hide it
hide
();
}
}
void
GRenderWindow
::
CaptureScreenshot
(
u16
res_scale
,
const
QString
&
screenshot_path
)
{
void
GRenderWindow
::
CaptureScreenshot
(
u16
res_scale
,
const
QString
&
screenshot_path
)
{
...
...
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