mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2025-09-22 10:48:52 -04:00
flood-it: Fixed buttons position (#193)
Reviewed-on: https://git.kolibrios.org/KolibriOS/kolibrios/pulls/193 Reviewed-by: Max Logaev <maxlogaev@proton.me> Co-authored-by: leency <lipatov.kiril@gmail.com> Co-committed-by: leency <lipatov.kiril@gmail.com>
This commit is contained in:
parent
d6c44c6570
commit
fcb9f49785
@ -225,8 +225,10 @@ void draw_window()
|
|||||||
|
|
||||||
// Main buttons to fill the board
|
// Main buttons to fill the board
|
||||||
#define FILL_BUTTON_SIZE BUTTON_SIZE+8
|
#define FILL_BUTTON_SIZE BUTTON_SIZE+8
|
||||||
for (i=0;i<6;i++)
|
for (i=0;i<6;i++) {
|
||||||
DefineButton(i%3*FILL_BUTTON_SIZE+17,i/3*FILL_BUTTON_SIZE+15,FILL_BUTTON_SIZE,FILL_BUTTON_SIZE, i+100,FIELD_COLORS[i]);
|
DefineButton(i%3*FILL_BUTTON_SIZE+17,calc(i/3)*FILL_BUTTON_SIZE+15,
|
||||||
|
FILL_BUTTON_SIZE,FILL_BUTTON_SIZE, i+100,FIELD_COLORS[i]);
|
||||||
|
}
|
||||||
|
|
||||||
// Menu buttons
|
// Menu buttons
|
||||||
for (i=0;i<3;i++)
|
for (i=0;i<3;i++)
|
||||||
|
@ -27,6 +27,8 @@ dword I_Path = 0;
|
|||||||
#define true 1
|
#define true 1
|
||||||
#define false 0
|
#define false 0
|
||||||
|
|
||||||
|
inline fastcall dword calc(EAX) { return EAX; }
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user