if(string[c] == ch1) string[c] = ch2;
}
+public void ChangeChars(char * string, const char * chars, char alt)
+{
+ int c;
+ for(c=0; string[c]; c++)
+ if(strchr(chars, string[c])) string[c] = alt;
+}
+
public void RepeatCh(char * string, int count, char ch)
{
int c;
}
#endif
+#if !defined(ECERE_NOTRUETYPE)
static int utf16BufferSize = 0;
static uint16 * utf16 = null;
+#endif
public class LFBDisplayDriver : DisplayDriver
{
static HINSTANCE hInstance;
static DEVMODE devMode;
+#ifndef ECERE_NODINPUT
static HWND acquiredWindow = null;
+#endif
static HCURSOR systemCursors[SystemCursor];
static bool fullScreenMode;
static int desktopX = 0, desktopY = 0, desktopW = 0, desktopH = 0;
void SetRootWindowColor(Window window)
{
- DWORD style = GetWindowLong(window.windowHandle, GWL_EXSTYLE);
if(window.alphaBlend && window.display.pixelFormat == pixelFormat888)
{
/*if(A(window.background) == 255)
else*/
{
#ifndef ECERE_NOBLENDING
+ DWORD style = GetWindowLong(window.windowHandle, GWL_EXSTYLE);
if((style & WS_EX_LAYERED) != WS_EX_LAYERED)
SetWindowLong(window.windowHandle, GWL_EXSTYLE, style | WS_EX_LAYERED);
#endif
public enum SetBool : uint
{
- unset, false, true /*; // Syntax error! */
+ unset, false, true;
/*public property bool // NOT WORKING!
{
{
char filePath[MAX_LOCATION];
strcpy(filePath, report.title);
+ ChangeChars(filePath, "/\\:*?\"|<>", '_');
strcat(filePath, ".csv");
saveTo.master = master;
saveTo.filePath = filePath;