Comments (3)
If you are using a gcc compiler, you can use "__attribute__ ((__packed__))" in
the
structure definitions you need to be packed in memory, as they were in the DOS
version.
Original comment by yrizoud
on 4 Sep 2008 at 7:17
from grafx2.
Yes, but writing a structure to a file is not clean and packing the struct does
not
solve the endianness problem. So we're going to write the members of the struc
one
after each other to the file, in a more portable way.
Original comment by [email protected]
on 8 Sep 2008 at 9:06
from grafx2.
As of r154, all the structs used in file format are __packed__.
When I solve the endianness issue for all formats I am certainly going to read
and
write member by member anyway, but in either way the packing problem is solved.
Original comment by yrizoud
on 17 Sep 2008 at 7:42
- Changed state: Fixed
from grafx2.
Related Issues (20)
- Split up graph.c, operatio.c and possibly other big files. HOT 2
- Build system : dependancies HOT 9
- Be able to choose number of cells in lower right palette window HOT 23
- Linux deployment: Program, data, user configuration HOT 4
- Gradation Rectangle lacks clipping HOT 4
- Missing refresh on brush grab with RMB HOT 2
- Cannot type a new name for "save as" or "load as" HOT 2
- win32 packages lack zlib1.dll and libpng13.dll HOT 1
- Uncomplete brush display on top of screen HOT 2
- Palette screen: Missing refresh of bg color HOT 1
- Save/Load: missing refresh in preview area HOT 1
- Window resizing and zoom mode HOT 3
- Missing refresh in splines HOT 2
- Missing refresh in brush rotation HOT 1
- Program hang in Save/Load HOT 1
- SFont: Wrong spacing HOT 5
- Changes after r335 that don't compile on haiku HOT 14
- Strange handling of simultaneous mouse events HOT 7
- Improved palette reduction algorithm HOT 29
- Not the latest version of GrafX2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafx2.