zSea: fix window position in case when @panel in the top (consider working area)
git-svn-id: svn://kolibrios.org@4878 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
40e326452b
commit
b5e8d43d62
@ -38,7 +38,7 @@ lsz fitext,\
|
|||||||
db 0
|
db 0
|
||||||
;---------------------------------------------------------------------
|
;---------------------------------------------------------------------
|
||||||
Authors_text:
|
Authors_text:
|
||||||
.1: db 'zSea version: 1.00 RC5 Date: 26/03/2013',0
|
.1: db 'zSea version: 1.00 RC5 Date: 22/04/2014',0
|
||||||
.2: db 'Authors:',0
|
.2: db 'Authors:',0
|
||||||
.3: db 'Marat Zakiyanov aka Mario(Mario79)',0
|
.3: db 'Marat Zakiyanov aka Mario(Mario79)',0
|
||||||
.4: db 'zSea program, modules: cnv_bmp.obj,',0
|
.4: db 'zSea program, modules: cnv_bmp.obj,',0
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
;*****************************************************************************
|
;*****************************************************************************
|
||||||
|
;*****************************************************************************
|
||||||
; zSea - advanced image viewer for KolibriOS
|
; zSea - advanced image viewer for KolibriOS
|
||||||
; Copyright (c) 2008-2013, Marat Zakiyanov aka Mario79, aka Mario
|
; Copyright (c) 2008-2014, Marat Zakiyanov aka Mario79, aka Mario
|
||||||
; All rights reserved.
|
; All rights reserved.
|
||||||
;
|
;
|
||||||
; Redistribution and use in source and binary forms, with or without
|
; Redistribution and use in source and binary forms, with or without
|
||||||
@ -25,7 +26,7 @@
|
|||||||
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
;*****************************************************************************
|
;*****************************************************************************
|
||||||
; v.1.0 rñ5 26.03.2013
|
; v.1.0 rñ5 22.04.2014
|
||||||
;******************************************************************************
|
;******************************************************************************
|
||||||
use32
|
use32
|
||||||
org 0x0
|
org 0x0
|
||||||
@ -211,9 +212,14 @@ START: ; start of execution
|
|||||||
jae @f
|
jae @f
|
||||||
mov [wnd_width],635
|
mov [wnd_width],635
|
||||||
@@:
|
@@:
|
||||||
cmp [wnd_height],150
|
mcall 48, 5 ; GetClientTop, fix for case when @patel in the top
|
||||||
|
shr ebx, 16
|
||||||
|
mov ecx,ebx
|
||||||
|
shl ecx,16
|
||||||
|
add ecx,150 ; [y start] *65536 + [y size]
|
||||||
|
cmp [wnd_height],ecx
|
||||||
jae @f
|
jae @f
|
||||||
mov [wnd_height],150
|
mov [wnd_height],ecx
|
||||||
@@:
|
@@:
|
||||||
; call draw_window
|
; call draw_window
|
||||||
red:
|
red:
|
||||||
|
Loading…
Reference in New Issue
Block a user