Thread: DR800 xmahjongg
View Single Post
Old 11-08-2010, 06:44 PM   #1
dima_tr
Groupie
dima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-booksdima_tr has learned how to read e-books
 
Posts: 175
Karma: 863
Join Date: Oct 2009
Location: Germany, Karlsruhe
Device: Iliad v2, DR800S (inlove)
Lightbulb xmahjongg

Yoohoo, I've made it! Please enjoy a DR port of a classical game. Unpack to SD card, you'll get a folder <sdcard>/Programs/Games/Xmahjongg/ . I hope there will be more games ported, thus the name

Browse to this folder and select any layout you like. It is highly recommendable to play in landscape mode.

Should work on DR1000 as well, with no additional tab though ..


Developers, pls see here:
Spoiler:

** Compilation went in two steps. First compiled for x86 host, a file image.c was generated - I've made its backup. Then after configuring for arm target I removed creation of image.c and restored the backup.

** A small method was added and used for partial/full refreshes. See main.cc. This was once mentioned by Inigo or Mackx as a "good small library to have". Well, it's even smaller than a library

** XCopyArea and XFillRectangle are good friends of partial refresh, while XCopyPlane - only of a full refresh. As a workaround I apply inverted mask on the selected image. This behaves fine on partial refreshes. See board.cc for //dima comments
Attached Files
File Type: zip xmahjongg.zip (436.0 KB, 329 views)
File Type: zip xmahjongg-3.7.zip (872.4 KB, 304 views)

Last edited by dima_tr; 11-08-2010 at 06:56 PM.
dima_tr is offline   Reply With Quote