Author: fireball
Date: Tue Oct 30 11:29:31 2007
New Revision: 29971
URL: http://svn.reactos.org/svn/reactos?rev=29971&view=rev
Log:
- Proper fix for unicode/ansi compilation ability of 3dtext (at least to fix compiler warning preventing trunk to compile), however one problem remains:
glCallLists(_tcslen(text), GL_UNSIGNED_SHORT, text); // Draws The Display List Text
GL_UNSIGNED_SHORT should be substituted by GL_UNSIGNED_BYTE if compiling as ANSI.
Modified:
trunk/reactos/base/applications/screensavers/3dtext/3dtext.c
Modified: trunk/reactos/base/applications/screensavers/3dtext/3dtext.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/screensa…
==============================================================================
--- trunk/reactos/base/applications/screensavers/3dtext/3dtext.c (original)
+++ trunk/reactos/base/applications/screensavers/3dtext/3dtext.c Tue Oct 30 11:29:31 2007
@@ -77,14 +77,14 @@
glDeleteLists(base, 256); // Delete All 256 Characters
}
-GLvoid glPrint(LPWSTR text) // Custom GL "Print" Routine
+GLvoid glPrint(LPTSTR text) // Custom GL "Print" Routine
{
if (text == NULL) // If There's No Text
return; // Do Nothing
glPushAttrib(GL_LIST_BIT); // Pushes The Display List Bits
glListBase(base); // Sets The Base Character to 32
- glCallLists(wcslen(text), GL_UNSIGNED_SHORT, text); // Draws The Display List Text
+ glCallLists(_tcslen(text), GL_UNSIGNED_SHORT, text); // Draws The Display List Text
glPopAttrib(); // Pops The Display List Bits
}
@@ -140,7 +140,7 @@
(1.0f*(cos(rot/20.0f))),
(1.0f*(sin(rot/25.0f))),
(1.0f-0.5f*(cos(rot/17.0f))));
- glPrint(m_Text); // Print GL Text To The Screen
+ glPrint(m_Text); // Print GL Text To The Screen
glColor3f(0.0f,0.0f,1.0f); // Make The Text Blue
rot+=0.1f; // Increase The Rotation Variable
}
Author: cfinck
Date: Tue Oct 30 00:42:29 2007
New Revision: 29964
URL: http://svn.reactos.org/svn/reactos?rev=29964&view=rev
Log:
Revert hpoussin's commit in r29960 to unbreak build.
Most of *our* stuff has separated host/target headers now, but the Wine-shared components still include headers from include/reactos/wine.
And these headers (like "winnt.h" in that directory) include our headers from include/psdk themselves, which are meant to be used for target components, but not for host tools.
This needs to be fixed first, before we can remove this hack.
Modified:
trunk/reactos/tools/tools.mak
Modified: trunk/reactos/tools/tools.mak
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/tools.mak?rev=29964&…
==============================================================================
--- trunk/reactos/tools/tools.mak (original)
+++ trunk/reactos/tools/tools.mak Tue Oct 30 00:42:29 2007
@@ -8,6 +8,10 @@
TOOLS_CFLAGS = -Wall -Wpointer-arith -Wno-strict-aliasing $(HOST_CFLAGS)
TOOLS_CPPFLAGS = -Wall -Wpointer-arith $(HOST_CPPFLAGS)
TOOLS_LFLAGS = $(HOST_LFLAGS)
+
+# HACK: Remove those lines once host tools don't use target headers anymore
+TOOLS_CFLAGS += -D__i386__
+TOOLS_CPPFLAGS += -D__i386__
$(TOOLS_INT): | $(INTERMEDIATE)
$(ECHO_MKDIR)
Author: cfinck
Date: Tue Oct 30 00:33:32 2007
New Revision: 29962
URL: http://svn.reactos.org/svn/reactos?rev=29962&view=rev
Log:
Delete the powerpc branch, the work will be done in trunk now
Removed:
branches/powerpc/