flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
sleepsleep 19 Nov 2012, 15:24
it seems nice, picnic!
waiting to play the game ![]()
|
||||||||||
![]() |
|
JohnFound 19 Nov 2012, 15:43
Works good here: Win XP professional 32bit; Intel Core 2 Duo;
But IMHO more than 40K for this interface is pretty big. You definitely need to optimize the size of the images. True color for 16x16 icons is excessive. You have only 284 colors in the active toolbar and 138 in the disabled toolbar. The icon also need to be optimized. On these simple optimizations you can spare at least 20k. |
|||
![]() |
|
Picnic 19 Nov 2012, 21:26
@sleepsleep it won't be soon, my tempo is slow. MHajduk and YONG posting too many songs you know
![]() @JohnFound i did a quick optimize and saved immediately 1/3 of it's size. Nice tip. I haven't given much attention yet in size. Thanks for the feedback guys. |
|||
![]() |
|
Enko 19 Nov 2012, 21:50
Works well on XP SP3
|
|||
![]() |
|
Picnic 20 Nov 2012, 13:35
^^Thanks for the response Enko.
I verified that it works good in Linux under Wine emulator. |
|||
![]() |
|
MHajduk 20 Nov 2012, 20:40
The GUI looks classy due to the style of the icons harmonized with the dark green and olive green colors of the game board.
![]() ![]() |
|||
![]() |
|
Picnic 20 Nov 2012, 22:34
^^Thanks for the resposne MHajduk, i tried a lot of different icons.
Now the gap it's supposed to do that, for now, the reason is that i'm doing a size fix in WM_EXITSIZEMOVE event. |
|||
![]() |
|
sleepsleep 20 Nov 2012, 23:50
picnic,
is that you draw those grids, circles in WM_PAINT event? |
|||
![]() |
|
Picnic 21 Nov 2012, 06:52
hi sleepsleep, i use simple back buffer technique, drawing everything in memory and bitblt on screen in WM_PAINT event.
|
|||
![]() |
|
f0dder 21 Nov 2012, 21:39
Which format do you store graphics in? If BMP, you could probably save quite a lot by converting to GIF - which is loadable even on relatively ancient Windows versions if you do so by OleLoadPicture (iirc for loading from resources, this includes a bit of faffing about with IID_IPicture and CreateStreamOnHGlobal - but it's not too bad, and it gives you GIF decoding for free).
EDIT: there's a topic about OleLoadPicture here, from 2004 - so GIF support should work on "quite a few Windows versions" ![]() ![]() ![]() |
|||
![]() |
|
Picnic 22 Nov 2012, 21:03
hi f0dder, the images yes are in BMP format. I note your remark, i think i have used OleLoadPicture again in Visual Basic. Now i'm using image list functions for toolbar and menu icons.
|
|||
![]() |
|
JohnFound 22 Nov 2012, 21:33
Fresh uses following approach for the toolbars:
1. Uses image lists, created from .gif images. For example the main toolbar contains 38 icons 16x16 in 1800bytes .gif image. 2. Disabled icons are created on the fly by the active one. 3. The whole library - gif decoder and disabled icons creator is 1616 bytes. 4. Total - maybe over 100 icons 16x16, 8 windows icons (not compressed) and 3 cursors - in 13kB resource section. |
|||
![]() |
|
f0dder 22 Nov 2012, 21:51
JohnFound wrote: 1. Uses image lists, created from .gif images. For example the main toolbar contains 38 icons 16x16 in 1800bytes .gif image. ![]() _________________ ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.