Skip to content

Commit

Permalink
Merge pull request #40 from Serg-Norseman/users/brigadir/ticket.39-39
Browse files Browse the repository at this point in the history
Please review topic branch 'users/brigadir/ticket.39-39'
  • Loading branch information
Serg-Norseman committed Apr 21, 2016
2 parents d209187 + e4bbf7f commit 8bd3fde
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 26 deletions.
32 changes: 16 additions & 16 deletions cpp/solution/Makefile/gnumake/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,34 @@ endif
.PHONY: all
all:
@CPUCOUNT=`grep -c ^processor /proc/cpuinfo` && set -x && \
$(MAKE) toolchain=$(icc) platform=$(x86-64) releasetype=$(release) -f arborgvt.mk --jobs $$CPUCOUNT --output-sync
$(MAKE) toolchain=$(icc) platform=$(x86-64) releasetype=$(release) --file=arborgvt.mk --jobs=$$CPUCOUNT --output-sync=target
@CPUCOUNT=`grep -c ^processor /proc/cpuinfo` && set -x && \
$(MAKE) toolchain=$(icc) platform=$(x86) releasetype=$(release) -f arborgvt.mk --jobs $$CPUCOUNT --output-sync
$(MAKE) toolchain=$(icc) platform=$(x86) releasetype=$(release) --file=arborgvt.mk --jobs=$$CPUCOUNT --output-sync=target
@CPUCOUNT=`grep -c ^processor /proc/cpuinfo` && set -x && \
$(MAKE) toolchain=$(msvc) platform=$(x86-64) releasetype=$(release) -f arborgvt.mk --jobs $$CPUCOUNT --output-sync
$(MAKE) toolchain=$(msvc) platform=$(x86-64) releasetype=$(release) --file=arborgvt.mk --jobs=$$CPUCOUNT --output-sync=target
@CPUCOUNT=`grep -c ^processor /proc/cpuinfo` && set -x && \
$(MAKE) toolchain=$(msvc) platform=$(x86) releasetype=$(release) -f arborgvt.mk --jobs $$CPUCOUNT --output-sync
$(MAKE) toolchain=$(msvc) platform=$(x86) releasetype=$(release) --file=arborgvt.mk --jobs=$$CPUCOUNT --output-sync=target
ifeq ($(dtsample), $(project))
@CPUCOUNT=`grep -c ^processor /proc/cpuinfo` && set -x && \
$(MAKE) toolchain=$(icc) platform=$(x86-64) releasetype=$(release) -f dtsample.mk --jobs $$CPUCOUNT --output-sync
$(MAKE) toolchain=$(icc) platform=$(x86-64) releasetype=$(release) --file=dtsample.mk --jobs=$$CPUCOUNT --output-sync=target
@CPUCOUNT=`grep -c ^processor /proc/cpuinfo` && set -x && \
$(MAKE) toolchain=$(icc) platform=$(x86) releasetype=$(release) -f dtsample.mk --jobs $$CPUCOUNT --output-sync
$(MAKE) toolchain=$(icc) platform=$(x86) releasetype=$(release) --file=dtsample.mk --jobs=$$CPUCOUNT --output-sync=target
@CPUCOUNT=`grep -c ^processor /proc/cpuinfo` && set -x && \
$(MAKE) toolchain=$(msvc) platform=$(x86-64) releasetype=$(release) -f dtsample.mk --jobs $$CPUCOUNT --output-sync
$(MAKE) toolchain=$(msvc) platform=$(x86-64) releasetype=$(release) --file=dtsample.mk --jobs=$$CPUCOUNT --output-sync=target
@CPUCOUNT=`grep -c ^processor /proc/cpuinfo` && set -x && \
$(MAKE) toolchain=$(msvc) platform=$(x86) releasetype=$(release) -f dtsample.mk --jobs $$CPUCOUNT --output-sync
$(MAKE) toolchain=$(msvc) platform=$(x86) releasetype=$(release) --file=dtsample.mk --jobs=$$CPUCOUNT --output-sync=target
endif

.PHONY: clean
clean:
$(MAKE) toolchain=$(icc) platform=$(x86-64) releasetype=$(release) -f arborgvt.mk $@
$(MAKE) toolchain=$(icc) platform=$(x86) releasetype=$(release) -f arborgvt.mk $@
$(MAKE) toolchain=$(msvc) platform=$(x86-64) releasetype=$(release) -f arborgvt.mk $@
$(MAKE) toolchain=$(msvc) platform=$(x86) releasetype=$(release) -f arborgvt.mk $@
$(MAKE) toolchain=$(icc) platform=$(x86-64) releasetype=$(release) --file=arborgvt.mk $@
$(MAKE) toolchain=$(icc) platform=$(x86) releasetype=$(release) --file=arborgvt.mk $@
$(MAKE) toolchain=$(msvc) platform=$(x86-64) releasetype=$(release) --file=arborgvt.mk $@
$(MAKE) toolchain=$(msvc) platform=$(x86) releasetype=$(release) --file=arborgvt.mk $@
# `arborgvt` and `dtsample` use the same `outdir`, therefore it ain't necessary to remove it twice.
#ifeq ($(dtsample), $(project))
# $(MAKE) toolchain=$(icc) platform=$(x86-64) releasetype=$(release) -f dtsample.mk $@
# $(MAKE) toolchain=$(icc) platform=$(x86) releasetype=$(release) -f dtsample.mk $@
# $(MAKE) toolchain=$(msvc) platform=$(x86-64) releasetype=$(release) -f dtsample.mk $@
# $(MAKE) toolchain=$(msvc) platform=$(x86) releasetype=$(release) -f dtsample.mk $@
# $(MAKE) toolchain=$(icc) platform=$(x86-64) releasetype=$(release) --file=dtsample.mk $@
# $(MAKE) toolchain=$(icc) platform=$(x86) releasetype=$(release) --file=dtsample.mk $@
# $(MAKE) toolchain=$(msvc) platform=$(x86-64) releasetype=$(release) --file=dtsample.mk $@
# $(MAKE) toolchain=$(msvc) platform=$(x86) releasetype=$(release) --file=dtsample.mk $@
#endif
8 changes: 3 additions & 5 deletions cpp/source/arborgvt/ui/window/child/onscreen/graphwnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

ATLADD_BEGIN

#if !defined(__ICL)
D2D1_SIZE_F graph_window::m_vertexNameSize = {50.0f, 50.0f};
#endif

/**
* Creates this window.
*
Expand Down Expand Up @@ -315,11 +311,13 @@ void graph_window::draw()
STLADD t_char_unique_ptr_t text {new TCHAR[length]};
length =
_stprintf_s(text.get(), length, TEXT("%.4f FPS (%I64i µs per frame)"), fps, durationInMicroseconds.count());
D2D1_MATRIX_3X2_F transform;
m_direct2DContext->GetTransform(&transform);
m_direct2DContext->DrawText(
text.get(),
length,
m_framesPerSecondTextFormat.get(),
D2D1::RectF(0.0f, 0.0f, targetSize.width, targetSize.height),
D2D1::RectF(-transform._31, -transform._32, targetSize.width, targetSize.height),
m_framesPerSecondBrush.get());
#endif
if (m_graph.active())
Expand Down
5 changes: 0 additions & 5 deletions cpp/source/arborgvt/ui/window/child/onscreen/graphwnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,7 @@ class graph_window: public child_window_impl<graph_window>
_In_ std::chrono::high_resolution_clock::duration&& frameTime);
#endif

#if defined(__ICL)
static constexpr D2D1_SIZE_F m_vertexNameSize = {50.0f, 50.0f};
#else
// Definition is on the top of graphwnd.cpp file.
static D2D1_SIZE_F m_vertexNameSize;
#endif
static constexpr float m_arrowLength = 7.75f;
static constexpr float m_arrowHalfWidth = 1.5f;
// Value of the `m_margin` depends on size of a vertex area.
Expand Down

0 comments on commit 8bd3fde

Please sign in to comment.