Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
Vulkan2021
VkCV Framework
Merge requests
!9
Resolve "Window creation"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Window creation"
8-window-creation
into
develop
Overview
0
Commits
5
Pipelines
0
Changes
1
Merged
Ghost User
requested to merge
8-window-creation
into
develop
3 years ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
Closes
#8 (closed)
Edited
3 years ago
by
Ghost User
0
0
Merge request reports
Viewing commit
f9dd1684
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
f9dd1684
[
#8
][Form] changed ternary operator to max
· f9dd1684
Sebastian Gaida
authored
3 years ago
src/vkcv/Window.cpp
+
2
−
2
Options
@@ -14,8 +14,8 @@ namespace vkcv {
Window
Window
::
create
(
const
char
*
windowTitle
,
int
width
,
int
height
,
bool
resizable
)
{
vkcv
::
initGLFW
();
width
=
width
<=
0
?
1
:
width
;
height
=
height
<=
0
?
1
:
height
;
width
=
std
::
max
(
width
,
1
)
;
height
=
std
::
max
(
height
,
1
)
;
glfwWindowHint
(
GLFW_CLIENT_API
,
GLFW_NO_API
);
glfwWindowHint
(
GLFW_RESIZABLE
,
resizable
?
GLFW_TRUE
:
GLFW_FALSE
);
Loading