Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
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
magicseteditor
Commits
95949ef8
Commit
95949ef8
authored
Dec 11, 2006
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
played with profiling
parent
488aa15d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
681 additions
and
11 deletions
+681
-11
src/gfx/resample_text.cpp
src/gfx/resample_text.cpp
+27
-5
src/gui/update_checker.cpp
src/gui/update_checker.cpp
+1
-0
src/mse.sln
src/mse.sln
+5
-2
src/mse.vcproj
src/mse.vcproj
+647
-4
src/render/symbol/filter.cpp
src/render/symbol/filter.cpp
+1
-0
No files found.
src/gfx/resample_text.cpp
View file @
95949ef8
...
@@ -18,12 +18,13 @@ const int text_scaling = 4;
...
@@ -18,12 +18,13 @@ const int text_scaling = 4;
// Fills an image with the specified color
// Fills an image with the specified color
void
fill_image
(
Image
&
image
,
const
Color
&
color
)
{
void
fill_image
(
Image
&
image
,
const
Color
&
color
)
{
Byte
*
pos
=
image
.
GetData
();
Byte
*
pos
=
image
.
GetData
();
Byte
*
end
=
image
.
GetData
()
+
image
.
GetWidth
()
*
image
.
GetHeight
()
*
3
;
Byte
*
end
=
pos
+
image
.
GetWidth
()
*
image
.
GetHeight
()
*
3
;
Byte
r
=
color
.
Red
(),
g
=
color
.
Green
(),
b
=
color
.
Blue
();
// fill the image
while
(
pos
!=
end
)
{
while
(
pos
!=
end
)
{
pos
[
0
]
=
color
.
Red
();
*
pos
++
=
r
;
pos
[
1
]
=
color
.
Green
();
*
pos
++
=
g
;
pos
[
2
]
=
color
.
Blue
();
*
pos
++
=
b
;
pos
+=
3
;
}
}
}
}
...
@@ -58,6 +59,27 @@ void downsample_to_alpha(Image& img_in, Image& img_out) {
...
@@ -58,6 +59,27 @@ void downsample_to_alpha(Image& img_in, Image& img_out) {
out
[
x
+
line_size
*
y
]
=
total
/
text_scaling
;
out
[
x
+
line_size
*
y
]
=
total
/
text_scaling
;
}
}
}
}
/*
img_out.InitAlpha();
Byte* in = img_in.GetData();
Byte* out = img_out.GetAlpha();
int w = img_out.GetWidth(), h = img_out.GetHeight();
int line_size = 3 * w * text_scaling;
for (int y = 0 ; y < h ; ++y) {
for (int x = 0 ; x < w ; ++x) {
int total = 0;
for (int i = 0 ; i < text_scaling ; ++i) {
for (int j = 0 ; j < text_scaling ; ++j) {
total += in[3*j];
}
in += line_size;
}
*out++ = total / (text_scaling * text_scaling);
in += 3 * text_scaling - line_size * text_scaling;
}
in += line_size * (text_scaling - 1);
}*/
}
}
// Draw text by first drawing it using a larger font and then downsampling it
// Draw text by first drawing it using a larger font and then downsampling it
...
...
src/gui/update_checker.cpp
View file @
95949ef8
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#include <gui/update_checker.hpp>
#include <gui/update_checker.hpp>
#include <data/settings.hpp>
#include <data/settings.hpp>
#include <util/version.hpp>
#include <util/version.hpp>
#include <script/value.hpp> // for some strange reason the profile build needs this :(
#include <wx/dialup.h>
#include <wx/dialup.h>
#include <wx/url.h>
#include <wx/url.h>
#include <wx/html/htmlwin.h>
#include <wx/html/htmlwin.h>
...
...
src/mse.sln
View file @
95949ef8
...
@@ -10,6 +10,7 @@ Global
...
@@ -10,6 +10,7 @@ Global
Release = Release
Release = Release
Release Profile Unicode = Release Profile Unicode
Release Profile Unicode = Release Profile Unicode
Release Unicode = Release Unicode
Release Unicode = Release Unicode
Release Unicode fast build = Release Unicode fast build
EndGlobalSection
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
GlobalSection(ProjectConfiguration) = postSolution
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Debug.ActiveCfg = Debug|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Debug.ActiveCfg = Debug|Win32
...
@@ -18,9 +19,11 @@ Global
...
@@ -18,9 +19,11 @@ Global
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Debug Unicode.Build.0 = Debug Unicode|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Debug Unicode.Build.0 = Debug Unicode|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release.ActiveCfg = Release|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release.ActiveCfg = Release|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release.Build.0 = Release|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release.Build.0 = Release|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release Profile Unicode.ActiveCfg = Release Unicode|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release Profile Unicode.ActiveCfg = Release
Profile
Unicode|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release Profile Unicode.Build.0 = Release Unicode|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release Profile Unicode.Build.0 = Release
Profile
Unicode|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release Unicode.ActiveCfg = Release Unicode|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release Unicode.ActiveCfg = Release Unicode|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release Unicode fast build.ActiveCfg = Release Unicode fast build|Win32
{A78D6E04-7637-4C7A-AC63-DAAC3C4DB81B}.Release Unicode fast build.Build.0 = Release Unicode fast build|Win32
EndGlobalSection
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
EndGlobalSection
...
...
src/mse.vcproj
View file @
95949ef8
This diff is collapsed.
Click to expand it.
src/render/symbol/filter.cpp
View file @
95949ef8
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#include <render/symbol/viewer.hpp>
#include <render/symbol/viewer.hpp>
#include <gfx/gfx.hpp>
#include <gfx/gfx.hpp>
#include <util/error.hpp>
#include <util/error.hpp>
#include <script/value.hpp> // for some strange reason the profile build needs this :(
// ----------------------------------------------------------------------------- : Symbol filtering
// ----------------------------------------------------------------------------- : Symbol filtering
...
...
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