Bug #816 » 0011-Correct-hight-to-height.patch
client/gui-qt/citydlg.cpp | ||
---|---|---|
setParent(parent);
|
||
radius = 0;
|
||
wdth = get_citydlg_canvas_width();
|
||
hight = get_citydlg_canvas_height();
|
||
height = get_citydlg_canvas_height();
|
||
cutted_width = wdth;
|
||
cutted_height = hight;
|
||
view = qtg_canvas_create(wdth, hight);
|
||
cutted_height = height;
|
||
view = qtg_canvas_create(wdth, height);
|
||
view->map_pixmap.fill(Qt::black);
|
||
miniview = qtg_canvas_create(0, 0);
|
||
miniview->map_pixmap.fill(Qt::black);
|
||
... | ... | |
radius = r;
|
||
qtg_canvas_free(miniview);
|
||
cutted_width = wdth * (r + 1) / max_r;
|
||
cutted_height = hight * (r + 1) / max_r;
|
||
cutted_height = height * (r + 1) / max_r;
|
||
cutted_width = qMin(cutted_width, wdth);
|
||
cutted_height = qMin(cutted_height, hight);
|
||
cutted_height = qMin(cutted_height, height);
|
||
delta_x = (wdth - cutted_width) / 2;
|
||
delta_y = (hight - cutted_height) / 2;
|
||
delta_y = (height - cutted_height) / 2;
|
||
miniview = qtg_canvas_create(cutted_width, cutted_height);
|
||
miniview->map_pixmap.fill(Qt::black);
|
||
}
|
client/gui-qt/citydlg.h | ||
---|---|---|
int radius;
|
||
float zoom;
|
||
int wdth;
|
||
int hight;
|
||
int height;
|
||
int cutted_width;
|
||
int cutted_height;
|
||
int delta_x;
|
client/gui-sdl2/widget_edit.c | ||
---|---|---|
if flag 'FW_DRAW_THEME_TRANSPARENT' is set theme will be blit
|
||
transparent ( Alpha = 128 )
|
||
function return Hight of created surfaces or (-1) if theme surface can't
|
||
function return height of created surfaces or (-1) if theme surface can't
|
||
be created.
|
||
**************************************************************************/
|
||
static int redraw_edit(struct widget *edit_widget)
|
client/gui-sdl2/widget_scrollbar.h | ||
---|---|---|
bool create_scrollbar, bool create_buttons);
|
||
void setup_vertical_scrollbar_area(struct scroll_bar *scroll,
|
||
Sint16 start_x, Sint16 start_y, Uint16 hight,
|
||
Sint16 start_x, Sint16 start_y, Uint16 height,
|
||
bool swap_start_x);
|
||
void setup_vertical_scrollbar_default_callbacks(struct scroll_bar *scroll);
|
server/plrhand.c | ||
---|---|---|
/**********************************************************************//**
|
||
civil_war_triggered:
|
||
* The capture of a primary capital is not a sure fire way to throw
|
||
and empire into civil war. Some governments are more susceptible
|
||
and empire into civil war. Some governments are more susceptible
|
||
than others, here are the base probabilities:
|
||
Anarchy 90%
|
||
Despotism 80%
|
||
... | ... | |
* In addition each city in disorder adds and each celebrating city
|
||
subtracts from the probability of a civil war.
|
||
* If you have at least 1 turns notice of the impending loss of
|
||
your capital, you can hike luxuries up to the hightest value,
|
||
and by this reduce the chance of a civil war. In fact by
|
||
your capital, you can hike luxuries up to the highest value,
|
||
and by this reduce the chance of a civil war. In fact by
|
||
hiking the luxuries to 100% under Democracy, it is easy to
|
||
get massively negative numbers - guaranteeing imunity from
|
||
civil war. Likewise, 3 cities in disorder under despotism
|
||
civil war. Likewise, 3 cities in disorder under despotism
|
||
guarantees a civil war.
|
||
* This routine calculates these probabilities and returns true
|
||
if a civil war is triggered.
|
- « Previous
- 1
- 2
- 3
- Next »