Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GCCProg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Claudio Hoffmann
GCCProg
Commits
6d57491f
Commit
6d57491f
authored
4 years ago
by
Claudio Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Platform_Win32Console: Remove some more dead code
parent
c5f1a0a3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Platform_Win32Console.cpp
+2
-9
2 additions, 9 deletions
Platform_Win32Console.cpp
with
2 additions
and
9 deletions
Platform_Win32Console.cpp
+
2
−
9
View file @
6d57491f
...
@@ -107,13 +107,6 @@ std::unordered_set<char> Platform_Win32Console::get_input(void)
...
@@ -107,13 +107,6 @@ std::unordered_set<char> Platform_Win32Console::get_input(void)
return
ret
;
return
ret
;
}
}
// Since CHAR_INFO is a `union`, we don't get an automatic implementation of
// std::equal_to.
bool
CHAR_INFO_equal
(
CHAR_INFO
const
&
a
,
CHAR_INFO
const
&
b
)
{
return
(
a
.
Attributes
==
b
.
Attributes
);
}
void
Platform_Win32Console
::
render
(
PixelBuffer
const
&
buffer
)
void
Platform_Win32Console
::
render
(
PixelBuffer
const
&
buffer
)
{
{
if
(
buffer
.
h
()
&
0x1
)
{
if
(
buffer
.
h
()
&
0x1
)
{
...
@@ -125,8 +118,8 @@ void Platform_Win32Console::render(PixelBuffer const &buffer)
...
@@ -125,8 +118,8 @@ void Platform_Win32Console::render(PixelBuffer const &buffer)
};
};
auto
con_buffer_size
=
(
con_area
.
X
*
con_area
.
Y
);
auto
con_buffer_size
=
(
con_area
.
X
*
con_area
.
Y
);
//
Keep the last two screens rendered
, so that we're able
to only render
//
Additonally keep the buffer from the previous frame
, so that we're able
// the differences.
//
to only render
the differences.
static
std
::
array
<
std
::
vector
<
CHAR_INFO
>
,
2
>
chars
;
static
std
::
array
<
std
::
vector
<
CHAR_INFO
>
,
2
>
chars
;
static
bool
page
=
true
;
static
bool
page
=
true
;
...
...
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