This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
// double scale = 6380997; | |
double scale = 63809; // This is already broken | |
// double scale = 6380; // This works | |
class MyApp : GuiApplication | |
{ | |
driver = "OpenGL"; | |
// driver = "Direct3D"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class Form1 : Window | |
{ | |
caption = "Form1"; | |
background = activeBorder; | |
borderStyle = sizable; | |
hasMaximize = true; | |
hasMinimize = true; | |
hasClose = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void TestLoopOptimizations() | |
{ | |
Map<int, char> map { [ { 1, '1' }, { 2, '2' }, { 3, '3' } ] }; | |
for(i : map) PrintLn(&i), PrintLn(i); | |
delete map; | |
} | |
void TestManualLoops() | |
{ | |
Map<int, char> map { [ { 1, '1' }, { 2, '2' }, { 3, '3' } ] }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/. | |
/usr | |
/usr/include | |
/usr/include/jpegint.h | |
/usr/include/jerror.h | |
/usr/include/jmorecfg.h | |
/usr/include/jconfig.h | |
/usr/include/jpeglib.h | |
/usr/lib | |
/usr/lib/x86_64-linux-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
import "Image" | |
import "Layout" | |
import "Button" | |
class LayoutArea : LayoutWindow | |
{ | |
text = "Rectangle Layout Demo"; | |
background = peru; | |
borderStyle = sizable; //fixed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
import "console" //typing | |
import "about" //about | |
import "help" //help | |
import "Sounds" //sounds | |
import "IPPorts" //IP Ports | |
import "enckey" //encryption keys | |
import "changename" //change nickname | |
import "UDP" //ports | |
import "htmlParser" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3ec7cd9 ecere/gui/ColorDropBox: Fixed missing color - Fixed problem introduced by 0faaa3a99957395bcb1a323bf18c8f0e1ffca642 | |
2a10b1b ecere/gfx/fonts: Fixed wrong kerning when using the same face with different sizes | |
cbe727b compiler/libec: Marking all structs with gcc_struct to get same packed padding as GCC < 4.7 | |
1fe51ec compiler/libec: Fix for debug line numbers in generated C code | |
9b55c14 ide/Project: Fixed buffer overflows using DynamicString::concatf - As I understand it, the whole point of DynamicString being to avoid buffer overflows, we should either get rid of concatf or fix it ASAP. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "HTMLView" | |
class AddressBar : Window | |
{ | |
background = activeBorder; | |
EditBox address | |
{ | |
this, text = "Address", anchor = Anchor { left = 60, right = 60, top = 0, bottom = 0 }, hotKey = altA; | |
bool NotifyKeyDown(EditBox editBox, Key key, unichar ch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "sort.h" | |
void SRT_Bubble(sort_t *Array, WORD Count) | |
{ | |
WORD c1,c2; | |
sort_t tmp; | |
for(c1=0; c1<Count; c1++) | |
for(c2=Count-1; c2>c1; c2--) | |
if(Array[c1].Compared>Array[c2].Compared) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
File f = FileOpen("file.txt", read); | |
if(f) | |
{ | |
while(!f.eof) | |
{ | |
char buffer[1024]; | |
if(f.GetLine(buffer, sizeof(buffer))) | |
PrintLn(buffer); | |
} |